[arch-commits] Commit in rgbds/trunk (PKGBUILD)
Maxime Gauduin
alucryd at archlinux.org
Thu Jul 23 12:08:08 UTC 2020
Date: Thursday, July 23, 2020 @ 12:08:07
Author: alucryd
Revision: 664996
upgpkg: rgbds 0.4.1-1
Modified:
rgbds/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++++++++------------
1 file changed, 18 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-23 11:48:05 UTC (rev 664995)
+++ PKGBUILD 2020-07-23 12:08:07 UTC (rev 664996)
@@ -2,8 +2,8 @@
# Contributor: Vaporeon <vaporeon at vaporeon.io>
pkgname=rgbds
-pkgver=0.4.0
-pkgrel=3
+pkgver=0.4.1
+pkgrel=1
pkgdesc='Rednex GameBoy Development System'
arch=(x86_64)
url=https://github.com/rednex/rgbds/
@@ -12,28 +12,34 @@
glibc
libpng
)
-makedepends=(git)
-_tag=4e96cf98759de41c118cbeb4e5d7765737b95982
+makedepends=(
+ cmake
+ git
+ ninja
+)
+_tag=8c0adb63a185392ac65f02de17522622a99dae89
source=(git+https://github.com/rednex/rgbds.git#tag=${_tag})
sha256sums=(SKIP)
-prepare() {
+pkgver() {
cd rgbds
- git cherry-pick -n 65121e6d5d2b9cb15283a0d5c46addeb67d20a7b # GCC 10 fix
+ git describe --tags | sed 's/^v//'
}
build() {
- make \
- VERSION_STRING="${pkgver}" \
- CFLAGS="${CFLAGS}" \
- LDFLAGS="${LDFLAGS}" \
- -C rgbds
+ cmake -S rgbds -B build -G Ninja \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ ninja -C build
}
package() {
- make DESTDIR="${pkgdir}" PREFIX=/usr mandir=/usr/share/man -C rgbds install
+ DESTDIR="${pkgdir}" ninja -C build install
install -Dm 644 rgbds/LICENSE -t "${pkgdir}"/usr/share/licenses/rgbds/
+ find rgbds/src -name *.1 -exec install -Dm 644 {} -t "${pkgdir}"/usr/share/man/man1/ \;
+ find rgbds/src -name *.5 -exec install -Dm 644 {} -t "${pkgdir}"/usr/share/man/man5/ \;
+ find rgbds/src -name *.7 -exec install -Dm 644 {} -t "${pkgdir}"/usr/share/man/man7/ \;
}
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list