diff options
author | Ashutosh Padelkar | 2015-10-27 18:42:46 +0530 |
---|---|---|
committer | Ashutosh Padelkar | 2015-10-27 18:42:46 +0530 |
commit | f1f42f1b8840f110ba7e8ec1fb0d9a472000db2e (patch) | |
tree | e3a3cd281df7b759592d652357b527c9b0aeb10d | |
download | aur-f1f42f1b8840f110ba7e8ec1fb0d9a472000db2e.tar.gz |
Created PKGBUILD, .SRCINFO and tempo2-cvs.install.
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 40 | ||||
-rw-r--r-- | tempo2-cvs.install | 3 |
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..db487f62fe10 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = tempo2-cvs + pkgdesc = Pulsar Timing Software + pkgver = 2014.11.1 + pkgrel = 1 + url = http://www.atnf.csiro.au/research/pulsar/tempo2 + install = tempo2-cvs.install + arch = i686 + arch = x86_64 + license = AFL + makedepends = cvs + depends = fftw + depends = pgplot + provides = tempo2 + +pkgname = tempo2-cvs + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5c42c5be9477 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Ashutosh Padelkar <a dot padelkar 1 at gmail dot com> +pkgname=tempo2-cvs +pkgver=2014.11.1 +pkgrel=1 +pkgdesc="Pulsar Timing Software" +arch=('i686' 'x86_64') +url="http://www.atnf.csiro.au/research/pulsar/tempo2" +license=('AFL') +depends=('fftw' 'pgplot') +makedepends=('cvs') +install=${pkgname}.install +provides=("${pkgname%-cvs}") + +pkgver() { + cvs history -c -a | cut -d' ' -f2 | sort -u | tail -n 1 | sed 's|-||g' +} + +prepare() { + cvs -z3 -d:pserver:anonymous@tempo2.cvs.sourceforge.net:/cvsroot/tempo2 co tempo2 + cd "$srcdir/${pkgname%-cvs}" +} + +build() { + cd "$srcdir/${pkgname%-cvs}" + ./bootstrap + ./configure --prefix=/usr + make +} + +check() { + cd "$srcdir/${pkgname%-cvs}" + make -k check +} + +package() { + cd "$srcdir/${pkgname%-cvs}" + make DESTDIR="$pkgdir/" install + mkdir -pv "$pkgdir/share/tempo2/T2runtime" + cp -rv "$srcdir/tempo2/T2runtime" "$pkgdir/share/tempo2/T2runtime" +} diff --git a/tempo2-cvs.install b/tempo2-cvs.install new file mode 100644 index 000000000000..da1f6ed58937 --- /dev/null +++ b/tempo2-cvs.install @@ -0,0 +1,3 @@ +post_install() { + echo "Please run: echo 'export \"TEMPO2=/usr/share/tempo2/T2runtime\"' >> ~/.bashrc" +} |