diff options
author | Kevin Slagle | 2019-10-15 16:12:53 -0700 |
---|---|---|
committer | Kevin Slagle | 2019-10-15 16:12:53 -0700 |
commit | 6513163c8632e25596c3e395448ec726e8a8b72f (patch) | |
tree | eb354699e6b959392a54ff981a37bc6b81b76765 | |
download | aur-6513163c8632e25596c3e395448ec726e8a8b72f.tar.gz |
new package
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..921080a50974 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = regina-normal + pkgdesc = software for low-dimensional topology + pkgver = 5.1 + pkgrel = 1 + url = https://regina-normal.github.io/ + arch = x86_64 + license = GPL + depends = gmp + depends = libxml2 + depends = jansson + depends = tokyocabinet + depends = popt + depends = boost + depends = qt5-svg + depends = python2 + depends = hicolor-icon-theme + depends = desktop-file-utils + optdepends = doxygen: C++/Python API docs + optdepends = graphviz: drawing graphs + optdepends = libxslt: user handbook + optdepends = openmpi: MPI-enabled utilities + optdepends = cppunit: test suite + source = https://github.com/regina-normal/regina/releases/download/regina-5.1/regina-5.1.tar.gz + md5sums = 76ea01d700618325c3f0cbaa6acff159 + +pkgname = regina-normal + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8232be9819c7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Kevin Slagle <kjslag at gmail dot com> + +pkgname=regina-normal +pkgver=5.1 +pkgrel=1 +pkgdesc='software for low-dimensional topology' +arch=('x86_64') +url='https://regina-normal.github.io/' +license=('GPL') +# hicolor-icon-theme desktop-file-utils were suggested by namcap +depends=(gmp libxml2 jansson tokyocabinet popt boost qt5-svg python2 hicolor-icon-theme desktop-file-utils) +optdepends=('doxygen: C++/Python API docs' + 'graphviz: drawing graphs' + 'libxslt: user handbook' + 'openmpi: MPI-enabled utilities' + 'cppunit: test suite') +source=("https://github.com/regina-normal/regina/releases/download/regina-$pkgver/regina-$pkgver.tar.gz") +md5sums=('76ea01d700618325c3f0cbaa6acff159') + +prepare() { + cd "regina-$pkgver" + + # add a missing header file to fix a compile error + sed -i '45i#include <functional>' engine/triangulation/dim3/triangulation3.h +} + +build() { + cd "regina-$pkgver" + mkdir build + cd build + + cmake -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_EXECUTABLE=/bin/python2 -DBoost_PYTHON_VERSION=2.7 .. + make +} + +package() { + cd "regina-$pkgver/build" + make DESTDIR="$pkgdir/" install + + # regina-python seems to assume that the build directory will still be around after the install. + # Since the build directory is temporary, we copy the engine source files to usr/share/regina/ (since regina-python also makes use of /usr/share/regina/examples/) and update the regina-python to use this location. + cp -R ../engine $pkgdir/usr/share/regina/ + sed -i "s|my \$srcdir = \".*src/regina-$pkgver\";|my \$srcdir = \"/usr/share/regina/\";|" $pkgdir/usr/bin/regina-python +} |