diff options
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fbbbfe36fb29 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = libaffa + pkgdesc = A C++ affine arithmetic library for GNU/Linux. + pkgver = 0.9.6 + pkgrel = 1 + url = http://savannah.nongnu.org/projects/libaffa + arch = x86_64 + license = LGPL + makedepends = cmake + depends = gcc-libs + options = staticlibs + source = https://github.com/foolnotion/libaffa/archive/v0.9.6.tar.gz + sha256sums = e520282f520a07a94a6a5bb18bb5b2b6432082f72daf0c1d23b58e24120f045a + +pkgname = libaffa + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1a86433424c6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Bogdan Burlacu <bogdan.burlacu@pm.me> +pkgname=libaffa +pkgver=0.9.6 +pkgrel=1 +pkgdesc="A C++ affine arithmetic library for GNU/Linux." +arch=('x86_64') +url="http://savannah.nongnu.org/projects/libaffa" +license=('LGPL') +depends=(gcc-libs) +makedepends=(cmake) +options=('staticlibs') +source=("https://github.com/foolnotion/libaffa/archive/v$pkgver.tar.gz") +sha256sums=(e520282f520a07a94a6a5bb18bb5b2b6432082f72daf0c1d23b58e24120f045a) + +build() { + cd "$pkgname-$pkgver" + rm -rf build + mkdir build + cd build + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .. + cmake --build . +} + +package() { + cd "$pkgname-$pkgver"/build + make DESTDIR="$pkgdir/" install +} |