summaryrefslogtreecommitdiff
path: root/community/expac/PKGBUILD
blob: 1bd7be9adcd6395350a72b16cef14726876cfd68 (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
# $Id: PKGBUILD 80201 2012-11-17 15:05:30Z dreisner $
# Maintainer: Dave Reisner <d@falconindy.com>

pkgname=expac
pkgver=1
pkgrel=2
pkgdesc="pacman database extraction utility"
arch=('i686' 'x86_64')
url="http://github.com/falconindy/expac"
license=('GPL')
depends=('pacman')
makedepends=('perl')
source=("https://github.com/downloads/falconindy/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('be8348f18e6af9db250437b14a91e443')

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