summaryrefslogtreecommitdiff
path: root/community/expac/PKGBUILD
blob: cf31567baaebc6b2852d90ecbfdf518963c96d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $Id: PKGBUILD 87648 2013-04-05 00:19:21Z dreisner $
# Maintainer: Dave Reisner <d@falconindy.com>

pkgname=expac
pkgver=2
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=('41a65f51009e44689bd5320f5c3aa7d4'
         'SKIP')

build() {
  make -C "$pkgname-$pkgver"

  sed '/\*\//q' "$pkgname-$pkgver"/expac.c >LICENSE
}

package() {
  make -C "$pkgname-$pkgver" PREFIX=/usr DESTDIR="$pkgdir" install
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim: ft=sh syn=sh