diff options
Diffstat (limited to 'extra/expac/PKGBUILD')
-rw-r--r-- | extra/expac/PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/extra/expac/PKGBUILD b/extra/expac/PKGBUILD new file mode 100644 index 000000000..f3f8be884 --- /dev/null +++ b/extra/expac/PKGBUILD @@ -0,0 +1,37 @@ +# $Id: PKGBUILD 87501 2013-04-02 00:06:04Z dreisner $ +# Maintainer: Dave Reisner <d@falconindy.com> + +pkgname=expac +pkgver=3 +pkgrel=1 +pkgdesc="pacman database extraction utility" +arch=('i686' 'x86_64') +url="http://github.com/falconindy/expac" +license=('GPL') +depends=('pacman') +makedepends=('perl') +source=("http://code.falconindy.com/archive/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig}) +md5sums=('2f53f9663b69948a4a8bb03c1aa435a5' + 'SKIP') + +prepare() { + cd "$pkgname-$pkgver" + + sed '/\*\//q' expac.c >LICENSE +} + +build() { + cd "$pkgname-$pkgver" + + make +} + +package() { + cd "$pkgname-$pkgver" + + make PREFIX=/usr DESTDIR="$pkgdir" install + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim: ft=sh syn=sh |