summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2161333043530bd398e40443dd652d95f47ef005 (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.11.1.r9.gc14c4e1
pkgrel=1
pkgdesc='Helper tools for libalpm'
url='https://github.com/andrewgregory/pacutils'
arch=('x86_64')
depends=('pacman')
makedepends=('git')
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"
}