diff options
author | heavysink | 2020-05-15 03:21:35 -0400 |
---|---|---|
committer | heavysink | 2020-05-15 03:21:35 -0400 |
commit | 77e0f8d8f6176fa31e6a7546a64b1ec3aaf7c680 (patch) | |
tree | 8461dbaa1c336d630bee0ad5d4acb6ec414df991 | |
download | aur-77e0f8d8f6176fa31e6a7546a64b1ec3aaf7c680.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b295591ce83a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = libcsa-git + pkgdesc = Bivariate Cubic Spline approximation library + standalone utility + pkgver = 20191025.917fa3c + pkgrel = 1 + url = https://github.com/sakov/csa-c + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + depends = glibc + source = libcsa-git::git://github.com/sakov/csa-c.git + md5sums = SKIP + +pkgname = libcsa-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0a78580e0ad7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Heavysink <winstonwu91 at gmail> +pkgname=libcsa-git +pkgver=20191025.917fa3c +pkgrel=1 +pkgdesc="Bivariate Cubic Spline approximation library + standalone utility" +arch=(i686 x86_64) +url="https://github.com/sakov/csa-c" +license=('GPL3') +depends=('glibc') +makedepends=('git') +source=($pkgname::"git://github.com/sakov/csa-c.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$pkgname/" + (git log -1 --format='%cd.%h' --date=short | tr -d -) +} + +build() { + cd "$srcdir/$pkgname/csa" + export CFLAGS+=" -fPIC" + ./configure \ + --prefix=$pkgdir/usr + make +} + +package() +{ + cd "$srcdir/$pkgname/csa" + make install +} |