diff options
author | Philip Jones | 2019-02-16 20:23:30 +0000 |
---|---|---|
committer | Philip Jones | 2019-02-16 20:25:19 +0000 |
commit | 3929524e9f45b2d0562e46fd24309a267452f009 (patch) | |
tree | 271352d8e63995dcae71c97704551085f3887efe | |
parent | 939c8ed82e8418cb1f1531f66df268ea15d0dd56 (diff) | |
download | aur-3929524e9f45b2d0562e46fd24309a267452f009.tar.gz |
Switching to meson/ninja.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 15 insertions, 12 deletions
@@ -1,6 +1,6 @@ pkgbase = gbcc-git pkgdesc = A Game Boy Color emulator written in C - pkgver = r174.0b4b105 + pkgver = r178.9cd81ef pkgrel = 1 url = https://github.com/philj56/GBCC arch = x86_64 @@ -1,14 +1,14 @@ # Maintainer: Philip Jones <philj56@gmail.com> -pkgname='gbcc-git' -pkgver=r174.0b4b105 +pkgname=gbcc-git +pkgver=r178.9cd81ef pkgrel=1 pkgdesc="A Game Boy Color emulator written in C" -arch=('x86_64') +arch=("x86_64") url="https://github.com/philj56/GBCC" -license=('GPL') +license=("MIT") groups=() -depends=('sdl2' 'libpng') -makedepends=('git') +depends=("sdl2" "libpng") +makedepends=("meson" "git" "scdoc") provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") replaces=() @@ -17,21 +17,24 @@ options=() install= source=("${pkgname}::git+${url}") noextract=() -sha512sums=('SKIP') +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}" - make clean - make + ninja -C build } package() { cd "${pkgname}" - install -Dm755 gbcc "${pkgdir}/usr/bin/gbcc" - install -Dm644 tileset.png "${pkgdir}/usr/share/games/gbcc/tileset.png" + DESTDIR="$pkgdir/" ninja -C build install } |