summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96df9bdc0a4b41eb56b3f6ad1156dbae534dea02 (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
29
30
31
32
33
34
35
36
37
# Maintainer: a821
# Contributor: agp
# Contributor: Johannes Löthberg
pkgname=pacutils-git
pkgver=0.15.0
pkgrel=1
pkgdesc='Helper tools for libalpm'
url='https://github.com/andrewgregory/pacutils'
arch=('x86_64')
depends=('pacman')
makedepends=('git' 'perl')
conflicts=('pacutils')
provides=("pacutils")
license=('MIT')
source=("git+${url}")
sha1sums=('SKIP')

pkgver() {
    cd pacutils
    git describe --tags | sed 's/^v//;s/-/.r/;s/-/./'
}

build() {
    cd pacutils
    make CFLAGS="$CFLAGS $LDFLAGS" SYSCONFDIR=/etc LOCALSTATEDIR=/var
}

check() {
    cd pacutils
    make check
}

package() {
    cd pacutils
    make DESTDIR="$pkgdir" PREFIX=/usr install
    install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}