Merge pull request #2427 from steski/librecad
New package: Librecad-2.0.8
This commit is contained in:
commit
851e6ef977
|
@ -2148,3 +2148,4 @@ libpugixml.so.1 pugixml-1.6_1
|
|||
libnewt.so.0.52 newt-0.52.18_1
|
||||
libgeany.so.0 geany-1.25_1
|
||||
libctpl.so.2 ctpl-0.3.4_1
|
||||
libmuparser.so.2 muparser-2.2.5_1
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
# Template file for 'LibreCAD'
|
||||
pkgname=LibreCAD
|
||||
version=2.0.8
|
||||
revision=1
|
||||
build_style=qmake
|
||||
hostmakedepends="qt-qmake pkg-config ImageMagick"
|
||||
makedepends="qt-devel boost-devel muparser-devel librsvg-devel"
|
||||
short_desc="2D Computer-aided design (CAD) software"
|
||||
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
||||
license="GPL-2"
|
||||
homepage="http://librecad.org"
|
||||
distfiles="https://github.com/${pkgname}/${pkgname}/archive/${version}.tar.gz"
|
||||
checksum=ddf654a29369d0b6e275584eb769c5d682957cb34babd004d1c71206cd080f34
|
||||
nocross=yes
|
||||
|
||||
do_install() {
|
||||
vbin unix/librecad
|
||||
|
||||
vbin unix/ttf2lff
|
||||
vman tools/ttf2lff/ttf2lff.1
|
||||
|
||||
vinstall desktop/librecad.desktop 0644 usr/share/applications/
|
||||
vinstall desktop/librecad.sharedmimeinfo 0644 usr/share/mime/packages/ librecad.xml
|
||||
|
||||
# install documentation
|
||||
vdoc librecad/support/doc/README
|
||||
vdoc librecad/support/doc/index.html
|
||||
vdoc librecad/support/doc/style.css
|
||||
vmkdir librecad/support/doc/img
|
||||
vinstall librecad/support/doc/img/librecadlogo.png 0644 \
|
||||
usr/share/doc/${pkgname}/img/
|
||||
|
||||
# install icons
|
||||
for size in 16 24 32 48 64 96 128; do
|
||||
convert -scale ${size} \
|
||||
desktop/graphics_icons_and_splash/Icon\ LibreCAD/Icon_Librecad.svg \
|
||||
librecad.png
|
||||
vmkdir usr/share/icons/hicolor/${size}x${size}/apps
|
||||
vcopy librecad.png usr/share/icons/hicolor/${size}x${size}/apps/
|
||||
done
|
||||
cp desktop/graphics_icons_and_splash/Icon\ LibreCAD/Icon_Librecad.svg librecad.svg
|
||||
vmkdir usr/share/icons/hicolor/scalable/apps
|
||||
vcopy librecad.svg usr/share/icons/hicolor/scalable/apps
|
||||
|
||||
# install resources
|
||||
for resource in library patterns fonts qm; do
|
||||
vcopy unix/resources/${resource} usr/share/librecad/
|
||||
done
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
muparser
|
|
@ -0,0 +1,27 @@
|
|||
# Template file for 'muparser'
|
||||
pkgname=muparser
|
||||
version=2.2.5
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
short_desc="A fast mathematical expression parser library"
|
||||
maintainer="Steve Prybylski <sa.prybylx@gmail.com>"
|
||||
license="MIT"
|
||||
homepage="http://muparser.beltoforion.de/"
|
||||
distfiles="https://github.com/beltoforion/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
|
||||
checksum=0666ef55da72c3e356ca85b6a0084d56b05dd740c3c21d26d372085aa2c6e708
|
||||
disable_parallel_build=yes
|
||||
|
||||
post_install() {
|
||||
vlicense License.txt
|
||||
}
|
||||
|
||||
muparser-devel_package() {
|
||||
short_desc+="- development files"
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove usr/lib/*.so
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue