1 # Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
8 pkgdesc='An architecture open CAD'
10 url='http://www.archimedes.org.br'
11 _fullname="${_pkgname}-${pkgver}.Exporter-linux.gtk.x86.zip"
12 source=('Archimedes.desktop' "http://downloads.sourceforge.net/project/arquimedes/Stable%20versions/${pkgver}-Shortcuts/${_fullname}")
13 md5sums=('e8d7bd4a70b24b5e4491a50460c729da' '51a47e47b6438937c956d92e34028a08')
14 if [ "${CARCH}" = "x86_64" ]; then
15 _fullname="${_pkgname}-${_pkgver}.Exporter-linux.gtk.x86_64.zip"
16 source[1]="http://downloads.sourceforge.net/project/arquimedes/Stable%20versions/${_pkgver}-Shortcuts/${_fullname}"
17 md5sums[1]='beca411ffac34e7a70827039084bf6b7'
20 depends=('jre' 'libxrender' 'fontconfig')
23 cd "${srcdir}/${_pkgname}"
24 install -dm755 ${pkgdir}/opt/${_pkgname} || return 1
25 tar -c . --exclude ${_fullname} | tar -C ${pkgdir}/opt/${_pkgname} -x || return 1
26 find ${pkgdir}/opt/${_pkgname} -type f -exec chmod 0644 '{}' ';' || return 1
27 find ${pkgdir}/opt/${_pkgname} -type d -exec chmod 0755 '{}' ';' || return 1
28 chmod +x ${pkgdir}/opt/${_pkgname}/${_pkgname} || return 1
29 install -Dm644 icon.xpm ${pkgdir}/usr/share/pixmaps/Archimedes.xpm || return 1
30 install -Dm644 ../Archimedes.desktop ${pkgdir}/usr/share/applications/Archimedes.desktop || return 1
31 install -dm755 ${pkgdir}/usr/bin || return 1
32 cd ${pkgdir}/usr/bin && \
33 ln -s ../../opt/${_pkgname}/${_pkgname} ${_pkgname} || return 1
35 # vim:set ts=2 sw=2 et ft=sh: