diff options
author | peeweep | 2019-08-31 10:09:42 +0800 |
---|---|---|
committer | peeweep | 2019-08-31 10:09:42 +0800 |
commit | 6d053a11b025b69d90128bc6096b5dd30916381f (patch) | |
tree | 9ef4d73c0a43bd18137b892e843c2f487f353d42 | |
download | aur-6d053a11b025b69d90128bc6096b5dd30916381f.tar.gz |
init
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | 0001-python-minieigen-git.patch | 12 | ||||
-rw-r--r-- | PKGBUILD | 35 |
4 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..532d5b8dbca1 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = python-minieigen-git + pkgdesc = Boost::Python wrapper for parts of the Eigen c++ library + pkgver = 20190218.3cf33d9 + pkgrel = 1 + url = https://github.com/eudoxos/minieigen + arch = x86_64 + license = LGPLv3 + makedepends = git + makedepends = boost-libs + makedepends = eigen + makedepends = python>=3.5 + depends = boost-libs + depends = eigen + depends = python>=3.5 + source = python-minieigen-git::git+https://github.com/eudoxos/minieigen.git + source = 0001-python-minieigen-git.patch + md5sums = SKIP + md5sums = 66fe70ea9503812c1bc48f63ce14b832 + +pkgname = python-minieigen-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..80bf52bc08a4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +pkg/ +src/ +*.pkg.tar.xz +python-minieigen-git/ + diff --git a/0001-python-minieigen-git.patch b/0001-python-minieigen-git.patch new file mode 100644 index 000000000000..1f39ac03fd9f --- /dev/null +++ b/0001-python-minieigen-git.patch @@ -0,0 +1,12 @@ +diff --git a/setup.py b/setup.py +index 68667c9..a31c65e 100644 +--- a/setup.py ++++ b/setup.py +@@ -21,6 +21,7 @@ if sys.platform=='win32': + define_macros+=[('EIGEN_DONT_VECTORIZE',None)] + else: + if ('Fedora' == platform.linux_distribution()[0] or ++ 'arch' == platform.linux_distribution()[0] or + 'CentOS' in platform.linux_distribution()[0]): + libraries=['boost_python%s'%('' if sys.version_info[0] == 2 else '3')] + else: diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0d7cce1910f6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: peeweep <peeweep at 0x0 dot ee> + +pkgname=('python-minieigen-git') +pkgdesc="Boost::Python wrapper for parts of the Eigen c++ library" +pkgver=20190218.3cf33d9 +pkgrel=1 +license=('LGPLv3') +url='https://github.com/eudoxos/minieigen' +arch=('x86_64') +makedepends=('git' 'boost-libs' 'eigen' 'python>=3.5') +depends=('boost-libs' 'eigen' 'python>=3.5') +source=("${pkgname}::git+${url}.git" + "0001-${pkgname}.patch") +md5sums=('SKIP' + '66fe70ea9503812c1bc48f63ce14b832') + +pkgver() { + cd "${srcdir}/${pkgname}" + git log -1 --format='%cd.%h' --date=short | tr -d - +} + +prepare() { + cd "${srcdir}/${pkgname}" + patch -p1 <"${srcdir}/0001-${pkgname}.patch" +} + +build() { + cd "${srcdir}/${pkgname}" + python setup.py build +} + +package() { + cd "${srcdir}/${pkgname}" + python setup.py install --root="${pkgdir}" --skip-build +} |