summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1ece5d04be04dc8aed7c27dda75463b783504b3 (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
# Maintainer: Stephen Smith <stephen304@gmail.com>
pkgname=gupper-ping
pkgver=1.c34da6b
pkgrel=1
pkgdesc="Just a ping thing."
arch=('x86_64' 'i686')
url="https://github.com/Stephen304/gupper-ping"
license=('MIT')
makedepends=('go')
options=('!strip' '!emptydirs')
source=("$pkgname::git+https://github.com/Stephen304/gupper-ping.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  echo $(git rev-list --count master).$(git rev-parse --short master)
}

build() {
  cd "$pkgname"

  go build
}

package() {
  cd "$pkgname"

  install -Dm4755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}