1 # Maintainer: Adam Hani Schakaki (krzd) <krzd@krzd.net>
2 pkgname=varicad-view-rpm
5 pkgdesc="Viewer VariCAD files. It can also open STEP (3D), DWG (2D), DXF (2D) and IGES (2D) files. (From RPM)"
7 url="http://www.varicad.com/"
9 depends=('hicolor-icon-theme' 'mesa' 'gtk2')
10 makedepends=(rpmextract)
11 source=(ftp://ftp.varicad.com/pub/VariCAD/en/linux/VariCAD_View_2011-en-1.02-1.i586.rpm)
12 [[ "$CARCH" == "x86_64" ]] && source=(ftp://ftp.varicad.com/pub/VariCAD/en/linux/VariCAD_View_2011-en-1.02-1.x86_64.rpm)
13 sha256sums=('5e886f3a639229b6066be7c7382fae243b11cc3e5beffaa45245185175d34054')
14 [[ "$CARCH" == "x86_64" ]] && sha256sums=('a8ead6b6323b2ddc52d1f577da9440086321a84b3a0a4fbcf96cf8544d50d6b4')
18 rpmextract.sh VariCAD_*-en-*.rpm
20 cd "opt/VariCAD-View/desktop"
21 install -Dm644 varicadview.desktop \
22 ${pkgdir}/usr/share/applications/varicadview.desktop
23 install -Dm644 x-varicadview.desktop \
24 ${pkgdir}/usr/share/mimelnk/application/x-varicadview.desktop
25 for i in 16x16 22x22 32x32 48x48; do
26 install -Dm 644 varicadview_${i}.png \
27 ${pkgdir}/usr/share/icons/hicolor/${i}/apps/varicadview.png
29 install -Dm 664 varicadview.xpm ${pkgdir}/usr/share/pixmaps/varicadview.xpm
30 install -Dm 664 varicadview.xpm ${pkgdir}/usr/share/icons/varicadview.xpm
33 # vim:set ts=2 sw=2 et: