diff options
author | Mattias Andrée <maandree@operamail.com> | 2013-03-05 06:58:36 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2013-03-05 06:58:36 +0100 |
commit | c5cc95f4ecdd1233b928780a7dfbed785b9591cb (patch) | |
tree | 9cdb62325f01a57f8a725475a6d203c78e0b77ae | |
parent | qt have been renamed to qt4, qtsixa is updated accordingly (diff) | |
download | aur-packages-c5cc95f4ecdd1233b928780a7dfbed785b9591cb.tar.gz aur-packages-c5cc95f4ecdd1233b928780a7dfbed785b9591cb.tar.bz2 aur-packages-c5cc95f4ecdd1233b928780a7dfbed785b9591cb.tar.xz |
adopting opencascade-docs
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | opencascade-docs/PKGBUILD | 29 | ||||
-rw-r--r-- | opencascade-docs/watch | 21 |
2 files changed, 50 insertions, 0 deletions
diff --git a/opencascade-docs/PKGBUILD b/opencascade-docs/PKGBUILD new file mode 100644 index 0000000..17908a2 --- /dev/null +++ b/opencascade-docs/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> +pkgname=opencascade-docs +pkgver=6.5.4 +pkgrel=1 +pkgdesc="Documentation and examples for opencascade." +url="http://www.opencascade.org" +license="custom" +depends=() +makedepends=() +provides=() +conflicts=() +options=(!strip !upx) +replaces=() +arch=('i686' 'x86_64') +source=("http://files.opencascade.com/OCCT/OCC_${pkgver}_release/OpenCASCADE${pkgver//./}.tar.gz") + +package() { + # Installation dir + local _installdir=/opt/opencascade + + # Copy files from source to the installation dir + install -d -m 755 "${pkgdir}${_installdir}" || return 1 + cp -r "${srcdir}/data" \ + "${srcdir}/samples" \ + "${srcdir}/doc" \ + "${pkgdir}${_installdir}" || return 1 +} + +md5sums=('413acc554e6187b38588b4c1cf48452a') diff --git a/opencascade-docs/watch b/opencascade-docs/watch new file mode 100644 index 0000000..fef786c --- /dev/null +++ b/opencascade-docs/watch @@ -0,0 +1,21 @@ +#!/bin/sh + +[ -f 'opencascade-pkgbuild' ] && rm 'opencascade-pkgbuild' + +wget 'https://aur.archlinux.org/packages/op/opencascade/PKGBUILD' -O 'opencascade-pkgbuild' >/dev/null 2>/dev/null + +if [ $? = 0 ]; then + [ -f unfetchable ] && rm unfetchable + grep ^md5sums= < opencascade-pkgbuild | md5sum > new-sum + touch sum + if [ "$(cat sum)" = "$(cat new-sum)" ]; then + rm new-sum + else + mv new-sum sum + echo 'opencascade-pkgbuild' "$(grep ^md5sums= < opencascade-pkgbuild | sed -e s_md5sums=__g -e s_\'__g)"')' + fi +elif [ ! -f unfetchable ]; then + touch unfetchable + echo 'opencascade-docs (unfetchable)' +fi + |