summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7d3ed6ab5454f4a2ad0b6cf68139a60e932fa385 (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
# Maintainer: Nicholas Bors-Sterian <fami_fish@proton.me>
pkgname='zooc-git'
pkgver=0
pkgrel=1
pkgdesc="A C re-write of tsoding's boomer with some added features."
arch=('x86_64')
url="https://github.com/nick-bors/zooc"
license=('MIT')

makedepends=('base-devel')
depends=(
    'glew'
    'mesa'
    'libx11'
    'libxrandr'
    'libxext'
)

source=("zooc::git+https://github.com/nick-bors/zooc.git")
sha256sums=('SKIP')

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

prepare() {
    cd "$srcdir"
}

build() {
    cd "$srcdir/${pkgname%-git}"
    make
}

package() {
    cd "$srcdir/${pkgname%-git}"
    make DESTDIR="$pkgdir" install
}