diff options
author | Grey Christoforo | 2016-01-18 12:20:28 +0000 |
---|---|---|
committer | Grey Christoforo | 2016-01-18 12:22:11 +0000 |
commit | ab2e69ab96b255ebf1b80b85e1cf2bd72f1dda64 (patch) | |
tree | 3814fe12a809f811b4d6b0c2c6317d9bcdd504ae | |
download | aur-ab2e69ab96b255ebf1b80b85e1cf2bd72f1dda64.tar.gz |
initial working commit
add srcinfo
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 38 |
3 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..167cc5242053 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +# Generated by mksrcinfo v8 +# Mon Jan 18 12:20:56 UTC 2016 +pkgbase = python-occ + pkgdesc = A python library whose purpose is to provide 3D modeling features + pkgver = 0.16.3 + pkgrel = 1 + url = https://github.com/tpaviot/pythonocc-core + arch = i686 + arch = x86_64 + license = GPLv3 + makedepends = cmake + makedepends = swig + makedepends = oce + makedepends = python + depends = oce + depends = python + source = https://github.com/tpaviot/pythonocc-core/archive/0.16.3.tar.gz + md5sums = 437d6709453b64e176d00e146e84a51f + +pkgname = python-occ + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..0a2223f3641d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tar.gz +*.tar.xz +src/ +pkg/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..799c19941639 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Grey Christoforo <first name [at] last name [dot] net> + +pkgname=python-occ +_pkgname=pythonocc-core +pkgver=0.16.3 +pkgrel=1 +pkgdesc="A python library whose purpose is to provide 3D modeling features" +url="https://github.com/tpaviot/pythonocc-core" +arch=('i686' 'x86_64') +license=('GPLv3') +makedepends=('cmake' 'swig' 'oce' 'python') +depends=('oce' 'python') +source=(https://github.com/tpaviot/${_pkgname}/archive/${pkgver}.tar.gz) +md5sums=('437d6709453b64e176d00e146e84a51f') + +prepare() { + cd ${_pkgname}-${pkgver} + mkdir -p build + cd build + flags="" + flags="$flags -DCMAKE_INSTALL_PREFIX=/usr/local" + flags="$flags -DOCE_INCLUDE_PATH=/usr/local/include/oce" + flags="$flags -DOCE_LIB_PATH=/usr/local/include/lib" + cmake $flags .. +} + +build() { + cd ${_pkgname}-${pkgver}/build + make +} + +package() { + cd ${_pkgname}-${pkgver}/build + make DESTDIR="${pkgdir}" install + install -Dm644 ${srcdir}/${_pkgname}-${pkgver}/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim:set ts=2 sw=2 et: |