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

makedepends=('git' 'make' 'gcc')
depends=(
    'glibc'
    'glew'
    'mesa'
    'libx11'
    'libxrandr'
    'libxext'
)

source=("zooc::git+https://github.com/fami-fish/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
}