summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc6febc420a1045e8b9c06d0d7dfc13d1664475d (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
39
40
# Maintainer: Robin Ekman < robin.seth.ekman [at] gmail [dot] com >

pkgbase=ntf
pkgname=${pkgbase}-git
pkgver=v1.0.1.r3.gd52a786
pkgrel=1
pkgdesc="Brings notification to your shell"
url='https://github.com/hrntknr/ntf'
arch=('any')
license=('GPL3')
depends=()
makedepends=(
    'go'
)
source=(
    'git+https://github.com/hrntknr/ntf.git'
)
sha256sums=(
    'SKIP'
)

provides=("${pkgname}")

pkgver() {
    cd "${pkgbase}"

    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${pkgbase}"

	go build -ldflags "-s -w"
}

package() {
	cd "${pkgbase}"

    install -Dm755 -t "${pkgdir}/usr/bin" ./ntf
}