# Maintainer: Grey Christoforo # Contributor: Bernhard Landauer # Contributor: Justin R. St-Amant pkgname=draftsight pkgver=2019SP3 pkgrel=2 pkgdesc="Freeware CAD software for DWG/DXF files." arch=('x86_64') url="http://www.3ds.com/products/$pkgname/" options=('!strip') license=('custom') depends=('alsa-lib' 'desktop-file-utils' 'fontconfig' 'gcc-libs' 'glib2' 'gtk2' 'libfaketime' 'libcups' 'libgl' 'libice' 'libmariadbclient' 'libmng' 'libpng12' 'libsm' 'libx11' 'libxext' 'libxrender' 'libxslt' 'postgresql-libs' 'qt5-base' 'qt5-x11extras' 'zlib') source=("$pkgname-$pkgver::http://dl-ak.solidworks.com/nonsecure/$pkgname/$pkgver/draftSight.rpm" "$pkgname.desktop") md5sums=('5be437640a14d87eeef57556dd614a36' '70904e450823c6978f242435d414e0fc') _pkgprefix='opt/dassault-systemes/DraftSight' package() { mkdir -p $pkgdir/$_pkgprefix cd $srcdir/$_pkgprefix install -Dm644 Eula/english/eula.htm $pkgdir/usr/share/licenses/$pkgname/LICENSE for size in "16x16" "32x32" "48x48" "64x64" "128x128" do install -Dm644 Resources/pixmaps/$size/program.png $pkgdir/usr/share/icons/hicolor/$size/apps/$pkgname.png install -Dm644 Resources/pixmaps/$size/file-dwg.png $pkgdir/usr/share/icons/hicolor/$size/mimetypes/file-dwg.png install -Dm644 Resources/pixmaps/$size/file-dxf.png $pkgdir/usr/share/icons/hicolor/$size/mimetypes/file-dxf.png install -Dm644 Resources/pixmaps/$size/file-dwt.png $pkgdir/usr/share/icons/hicolor/$size/mimetypes/file-dwt.png done install -Dm644 Resources/dassault-systemes_$pkgname-dwg.xml $pkgdir/usr/share/mime/application/dassault-systemes_$pkgname-dwg.xml install -Dm644 Resources/dassault-systemes_$pkgname-dxf.xml $pkgdir/usr/share/mime/application/dassault-systemes_$pkgname-dxf.xml install -Dm644 Resources/dassault-systemes_$pkgname-dwt.xml $pkgdir/usr/share/mime/application/dassault-systemes_$pkgname-dwt.xml install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop # Install Draftsight's program files cp -pr $srcdir/$_pkgprefix/* $pkgdir/$_pkgprefix/ # fix pdf export module lib load ln -s /usr/lib/libpcre.so.1 $pkgdir/opt/dassault-systemes/DraftSight/Libraries/libpcre.so.3 }