summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cc61886a4d3d4353fc5100b39a2d547d9e87038b (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
41
42
43
44
# Maintainer: Robin Broda <robin at broda dot me>

_pkgname="bonzomatic"
pkgname=("${_pkgname}-git")
pkgver=r284.362c1de
pkgrel=2
pkgdesc='a live-coding tool where you can write a 2D fragment/pixel shader while it is running in the background'
arch=('x86_64')
url='https://github.com/Gargaj/bonzomatic'
license=('custom:Unlicense')
provides=('bonzomatic')
conflicts=('bonzomatic')
depends=('xorg-server' 'libxrandr' 'libxinerama' 'libxcursor' 'libbass')
makedepends=('git' 'cmake' 'glu' 'chrpath')
source=('git+https://github.com/Gargaj/bonzomatic.git')
md5sums=('SKIP')

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

prepare() {
  cd "${_pkgname}"

  mkdir -p build
}

build() {
  cd "${_pkgname}/build"

  cmake ..
  make
}

package() {
  cd "${_pkgname}/build"

  # Fix insecure rpath
  chrpath -d bonzomatic

  install -Dm755 bonzomatic "${pkgdir}/usr/bin/bonzomatic"
  install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}