summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 01fbafdcf7524214c3e48ff7fb82236427ecc980 (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
38
# Maintainer: Mark Old <dlom234@gmail.com>

_gitname=highcommand
pkgname=$_gitname-git
pkgver=r52.b4d2b67
pkgrel=1
pkgdesc="getopt() for the future"
url="https://github.com/dlom/highcommand"
license=("MIT")
depends=("glibc")
makedepends=("ruby-ronn")
checkdepends=("cmocka")
arch=("i686" "x86_64")
provides=("highcommand")
conflicts=("highcommand")
source=("git+https://github.com/dlom/$_gitname.git")
md5sums=(SKIP)

pkgver() {
    cd "$_gitname"
    printf "r%s.%s\n" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$_gitname"
    make
}

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

check() {
    cd "$_gitname"
    make check
}