diff options
author | andalenavals | 2018-01-06 15:52:28 -0500 |
---|---|---|
committer | andalenavals | 2018-01-06 15:52:28 -0500 |
commit | 4a998ca8d37b24244b8956df18850297d62d61b1 (patch) | |
tree | fb62cf72cdcfff832f2bcc59d8400b45770d2d9e /PKGBUILD | |
parent | e382f775e887edd60f8c91b75f96dd164ccf938c (diff) | |
download | aur-4a998ca8d37b24244b8956df18850297d62d61b1.tar.gz |
check() function still not defined
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 51 |
1 files changed, 14 insertions, 37 deletions
@@ -1,58 +1,35 @@ -# This is an example PKGBUILD file. Use this as a start to creating your own, -# and remove these comments. For more information, see 'man PKGBUILD'. -# NOTE: Please fill out the license field for your package! If it is unknown, -# then please put 'unknown'. - # Maintainer: Andres Alejandro Navarro Alsina <aanavarroa@unal.edu.co> -# Contributor: Eric Mandel +# Contributor: Eric Mandel +_pkgname=funtools pkgname=funtools-git -pkgver=r50.9c8bb6f +pkgver=v1.4.7.r13.9c8bb6f pkgrel=1 -#epoch= - pkgdesc=" FITS library and utility package. " - - -arch=('x86_64') +arch=('x86_64' 'i686') url="https://github.com/ericmandel/funtools" license=('GPL3') -groups=() depends=('sh') makedepends=('git') -checkdepends=() -optdepends=() -#provides=() -#conflicts=() -#replaces=() -#backup=() -options=() -install= -changelog= -source=("$pkgname-$pkgver::git+${url}") +source=("${_pkgname}::git+${url}") #noextract=() md5sums=('SKIP') -#validpgpkeys=() + +pkgver() { + cd $_pkgname + printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" +} build() { - cd "$src" - cd "$pkgname-$pkgver" + cd $_pkgname ./mkconfigure ./configure --prefix=/usr make } -pkgver() { - cd "$pkgname-$pkgver" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" -} - - package() { - cd "$src" - cd "$pkgname-$pkgver" - install -d "$pkgdir"/usr/share/man - make DESTDIR="$pkgdir" install - + cd $_pkgname + install -d "$pkgdir"/usr/share/man + make DESTDIR="$pkgdir" install } |