summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: baec276eb9e9bec838142ea3a5d84c62d7d32e51 (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: Philip Jones <philj56@gmail.com>
pkgname=gbcc-git
pkgver=r285.e8e4bdc
pkgrel=1
pkgdesc="A Game Boy Color emulator written in C"
arch=("x86_64")
url="https://github.com/philj56/GBCC"
license=("MIT")
groups=()
depends=("sdl2" "gtk3" "libpng" "libepoxy" "openal")
makedepends=("meson" "git" "scdoc")
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("${pkgname}::git+${url}")
noextract=()
sha512sums=("SKIP")

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

prepare() {
        cd "${pkgname}"
        meson --prefix /usr build
}

build() {
	cd "${pkgname}"
        ninja -C build
}

package() {
	cd "${pkgname}"
        DESTDIR="$pkgdir" ninja -C build install
}