summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 82027b36b85f3fdcfeb2366287842ca176c5668f (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
# Maintainer: Prurigro

_pkgname=gntp-send
pkgname=${_pkgname}-git
pkgver=20170901.r160.090b127
pkgrel=1
pkgdesc="command line program that send to growl using GNTP protocol."
url="https://github.com/mattn/${_pkgname}"
license=('BSD')
depends=('glibc')
makedepends=('git')
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')

source=("git://github.com/mattn/${_pkgname}.git#branch=master")
sha512sums=('SKIP')

pkgver() {
    cd $_pkgname
    printf "%s.r%s.%s" "$(git show -s --format=%ci master | sed 's/\ .*//g;s/-//g')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd $_pkgname
    ./autogen.sh
    ./configure --prefix=/usr
    make Makefile
}

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