# $Id: PKGBUILD 212330 2014-05-13 01:21:58Z dreisner $ # Maintainer: Dave Reisner pkgname=pkgfile pkgver=14 pkgrel=1 pkgdesc="a pacman .files metadata explorer" arch=('i686' 'x86_64') url="http://github.com/falconindy/pkgfile" license=('MIT') depends=('libarchive' 'curl' 'pcre' 'pacman') source=("http://code.falconindy.com/archive/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig}) install=pkgfile.install md5sums=('aae3642bfe379731c7d9819b41bc1ab9' 'SKIP') build() { cd "$pkgname-$pkgver" ./configure \ --with-systemdsystemunitdir=/usr/lib/systemd/system make # generate a license file sed '/\*\//q' src/pkgfile.c >LICENSE } package() { cd "$pkgname-$pkgver" make DESTDIR="$pkgdir" install install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } # vim: ft=sh syn=sh