Package Details: rgbds-git 0.9.0.rrc1.25.gcf851463-2

Git Clone URL: https://aur.archlinux.org/rgbds-git.git (read-only, click to copy)
Package Base: rgbds-git
Description: Rednex GameBoy Development System (development version)
Upstream URL: https://github.com/rednex/rgbds/
Licenses: MIT
Conflicts: rgbds
Provides: rgbds
Submitter: cosarara97
Maintainer: 46620
Last Packager: 46620
Votes: 4
Popularity: 0.000000
First Submitted: 2013-11-22 17:58 (UTC)
Last Updated: 2024-10-05 11:52 (UTC)

Dependencies (2)

Required by (7)

Sources (1)

Latest Comments

JL2210 commented on 2024-10-07 17:53 (UTC) (edited on 2024-10-07 17:59 (UTC) by JL2210)

@46620 Thanks for picking this up! A few minor nitpicks: the org for rgbds changed from rednex to gbdev a while ago. There is also a CMake build system which is used in the main repo package.

Here's the diff for the PKGBUILD that I've been using:

diff --git a/PKGBUILD b/PKGBUILD
index 5785f57..22da856 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,30 +4,33 @@

 pkgname=rgbds-git
 pkgver=0.9.0.rrc1.25.gcf851463
-pkgrel=2
-pkgdesc="Rednex GameBoy Development System (development version)"
+pkgrel=3
+pkgdesc="Rednex Game Boy Development System (development version)"
 arch=('i686' 'x86_64')
-url="https://github.com/rednex/rgbds/"
+url="https://github.com/gbdev/rgbds"
 license=('MIT')
 provides=('rgbds')
 conflicts=('rgbds')
-makedepends=('git')
+makedepends=('cmake' 'git' 'ninja')
 depends=('libpng')
-source=($pkgname::"git+https://github.com/rednex/rgbds")
-md5sums=('SKIP')
+source=($pkgname::"git+$url")
+sha512sums=("SKIP")

 pkgver() {
-  cd $pkgname
+  cd "${pkgname}"
   git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./g'
 }

 build() {
-  cd $pkgname
-  make
+  cmake -S "${pkgname}" -B build -G Ninja \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  ninja -C build
 }

 package() {
-  cd $pkgname
-  make DESTDIR="$pkgdir" PREFIX=/usr mandir=/usr/share/man install
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+  DESTDIR="${pkgdir}" ninja -C build install
+  rm -rf "${pkgdir}"/build
+  install -Dm644 "${pkgname}"/LICENSE -t "${pkgdir}"/usr/share/licenses/rgbds/
+  find rgbds/contrib/zsh_compl -type f -exec install -Dm644 {} -t "${pkgdir}"/usr/share/zsh/site-functions/ \;
 }

Feel free to use it.

<deleted-account> commented on 2021-03-14 13:38 (UTC)

Latest release fails to build.

==> ERROR: pkgver is not allowed to contain colons, forward slashes, hyphens or whitespace.
==> ERROR: pkgver() generated an invalid version: 0.5.0.rrc1.3-ga81d383

Assuming there's something off with the regex.

pjj56 commented on 2020-10-13 21:32 (UTC)

This fails to build recently due to an invalid pkgver, as the sed regex leaves a - in. The regex just needs a g on the end to fix it, i.e.

git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./g'

carstene1ns commented on 2020-01-13 10:31 (UTC)

flex is part of base-devel, so expected to be installed.

EndlessEden commented on 2020-01-09 09:15 (UTC)

please add flex to depends

carstene1ns commented on 2018-11-22 18:26 (UTC)

NieDzejkob: Thank you, added.

meithecatte commented on 2018-11-10 12:34 (UTC)

Can you please add a provides=('rgbds') line?

cosarara97 commented on 2018-03-06 15:50 (UTC)

I don't use this program anymore, I've disowned the package.

<deleted-account> commented on 2017-07-05 20:09 (UTC)

The PKGBUILD is broken. "$pkgdir/usr/share/licenses/rgbds-git/LICENSE" doesn't exist which causes the build to fail.