summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 79ffe1e8f6295722289d0e1472f8646e647aec5a (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
pkgname=goboom

pkgver=r24.f607d12
pkgrel=1
pkgdesc="A dmenu wrapper"
url="https://src.snilius.com/goboom/"
license=('GPL3')
arch=('x86_64')
depends=('dmenu')
makedepends=()

source=()
#sha256sums=('')

prepare() {
  ln -snf "$startdir" "$srcdir/$pkgname"
}

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

build() {
  cd "$startdir"
  VERSION=$pkgver make build
  VERSION=$pkgver make man
}

package() {
  cd "$startdir"
  install -D -m755 goboom $pkgdir/usr/bin/goboom
  install -D -m755 goboom_run $pkgdir/usr/bin/goboom_run
  install -D -m644 docs/_build/man/goboom.1 $pkgdir/usr/share/man/man1/goboom.1
}