[arch-commits] Commit in rgbds/repos/community-x86_64 (PKGBUILD PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Thu Jul 23 12:08:14 UTC 2020


    Date: Thursday, July 23, 2020 @ 12:08:13
  Author: alucryd
Revision: 664997

archrelease: copy trunk to community-x86_64

Added:
  rgbds/repos/community-x86_64/PKGBUILD
    (from rev 664996, rgbds/trunk/PKGBUILD)
Deleted:
  rgbds/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   84 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 45 insertions(+), 39 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-23 12:08:07 UTC (rev 664996)
+++ PKGBUILD	2020-07-23 12:08:13 UTC (rev 664997)
@@ -1,39 +0,0 @@
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-# Contributor: Vaporeon <vaporeon at vaporeon.io>
-
-pkgname=rgbds
-pkgver=0.4.0
-pkgrel=3
-pkgdesc='Rednex GameBoy Development System'
-arch=(x86_64)
-url=https://github.com/rednex/rgbds/
-license=(MIT)
-depends=(
-  glibc
-  libpng
-)
-makedepends=(git)
-_tag=4e96cf98759de41c118cbeb4e5d7765737b95982
-source=(git+https://github.com/rednex/rgbds.git#tag=${_tag})
-sha256sums=(SKIP)
-
-prepare() {
-  cd rgbds
-
-  git cherry-pick -n 65121e6d5d2b9cb15283a0d5c46addeb67d20a7b # GCC 10 fix
-}
-
-build() {
-  make \
-    VERSION_STRING="${pkgver}" \
-    CFLAGS="${CFLAGS}" \
-    LDFLAGS="${LDFLAGS}" \
-    -C rgbds
-}
-
-package() {
-  make DESTDIR="${pkgdir}" PREFIX=/usr mandir=/usr/share/man -C rgbds install
-  install -Dm 644 rgbds/LICENSE -t "${pkgdir}"/usr/share/licenses/rgbds/
-}
-
-# vim: ts=2 sw=2 et:

Copied: rgbds/repos/community-x86_64/PKGBUILD (from rev 664996, rgbds/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-23 12:08:13 UTC (rev 664997)
@@ -0,0 +1,45 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Vaporeon <vaporeon at vaporeon.io>
+
+pkgname=rgbds
+pkgver=0.4.1
+pkgrel=1
+pkgdesc='Rednex GameBoy Development System'
+arch=(x86_64)
+url=https://github.com/rednex/rgbds/
+license=(MIT)
+depends=(
+  glibc
+  libpng
+)
+makedepends=(
+  cmake
+  git
+  ninja
+)
+_tag=8c0adb63a185392ac65f02de17522622a99dae89
+source=(git+https://github.com/rednex/rgbds.git#tag=${_tag})
+sha256sums=(SKIP)
+
+pkgver() {
+  cd rgbds
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cmake -S rgbds -B build -G Ninja \
+    -DCMAKE_BUILD_TYPE=None \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  ninja -C build
+}
+
+package() {
+  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