summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1c87cfaf74f351e96ecb4b24c45639e7b7f7088b (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: Johannes Arnold <johannes.arnold@stud.uni-hannover.de>
pkgname=bklk-git
pkgver=latest
pkgrel=1
pkgdesc="Ncurses Binary Clock"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/Ruunyox/bklk"
license=('MIT')
depends=('ncurses')
source=("git+https://github.com/Ruunyox/bklk.git")
md5sums=(SKIP)

_gitname="bklk"

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

prepare() {
	cd "$srcdir/${_gitname}"
}

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

package() {
	cd "$srcdir/$_gitname"
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -Dm755 $_gitname "$pkgdir/usr/bin/$_gitname"
}