summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5421a88aa03d8d99ac9aead2ebaff9aeac89aace (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
_pkgname=pgtap
pkgname=$_pkgname-git
pkgver=v0.95.0.r21.gfebdfa6
pkgrel=1
pkgdesc="Suite of database functions that make it easy to write TAP-emitting \
unit tests in psql scripts or xUnit-style test functions."
arch=('any')
url="http://pgtap.org"
license=("postgresql")
depends=(postgresql)
source=("git://github.com/theory/pgtap.git")
md5sums=("SKIP")

pkgver() {
    cd "$srcdir/$_pkgname"
    git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
    cd "$srcdir/$_pkgname"
    make
}

package() {
    cd "$srcdir/$_pkgname"
    make DESTDIR="$pkgdir" install
}