diff options
author | Frederik Lauber | 2016-09-20 00:19:17 +0200 |
---|---|---|
committer | Frederik Lauber | 2016-09-20 00:19:17 +0200 |
commit | 7717add41e1004a25b3105aec1d9d435793318e3 (patch) | |
tree | d227e0d4cda7fbc75cbc398f039812d531850890 | |
download | aur-icecube-pal-git.tar.gz |
First version
-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..d71ad2858b2c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = icecube-pal-git + pkgdesc = Positional Astronomy Library + pkgver = v0.9.1.r17.gd452780 + pkgrel = 1 + url = https://github.com/IceCube-SPNO/pal + arch = x86_64 + arch = i686 + license = gpl3+ + depends = erfa + options = !libtool + source = pal::git+https://github.com/IceCube-SPNO/pal + md5sums = SKIP + +pkgname = icecube-pal-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..95c7b80414d1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Frederik Lauber <acc-arch-pkgbuild-icecube-pal-git@flambda.de> +pkgname=icecube-pal-git +pkgrel=1 +pkgdesc="Positional Astronomy Library" +url="https://github.com/IceCube-SPNO/pal" +arch=('x86_64' 'i686') +license=('gpl3+') +options=('!libtool') +source=('pal::git+https://github.com/IceCube-SPNO/pal') +depends=('erfa') +pkgver=v0.9.1.r17.gd452780 +md5sums=('SKIP') + +pkgver() { + cd "${srcdir}/pal" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + + +build() { + cd "${srcdir}/pal" + ./bootstrap + ./configure --prefix=/usr + make +} + +package() { + cd "${srcdir}/pal" + make DESTDIR="$pkgdir/" install +} + |