2015-08-31 17:55:43 +00:00
|
|
|
# Template file for 'LibreCAD'
|
|
|
|
pkgname=LibreCAD
|
2016-01-10 22:36:04 +00:00
|
|
|
version=2.0.9
|
2015-08-31 17:55:43 +00:00
|
|
|
revision=1
|
2016-01-10 22:36:04 +00:00
|
|
|
nocross=yes # qt
|
2015-08-31 17:55:43 +00:00
|
|
|
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"
|
2016-01-10 22:36:04 +00:00
|
|
|
checksum=a0a14676e167430f23a2f00220c87d2b34d711e73a8ff2368024a998f425d677
|
2015-08-31 17:55:43 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|