summaryrefslogtreecommitdiff
path: root/extra/expac
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-12-27 23:55:53 +0000
commit65eeff79fff8a1bfdf67ca51d147384f46f4d5c0 (patch)
treefbfdff322b28d9a3c37e6e31c94caf1d8e48dac1 /extra/expac
parentd53c44f055929b18d7d1b25f8367ee5836c435fc (diff)
Fri Dec 27 23:54:04 UTC 2013
Diffstat (limited to 'extra/expac')
-rw-r--r--extra/expac/PKGBUILD37
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