Skip to content

Commit

Permalink
add: rgbds (terrapkg#895)
Browse files Browse the repository at this point in the history
* add: rgbds

* anda.hcl

* update.rhai
  • Loading branch information
madonuko authored Jan 21, 2024
1 parent ff3ec8b commit 8091ce3
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anda/devs/rgbds/anda.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "terra-rgbds.spec"
}
}
58 changes: 58 additions & 0 deletions anda/devs/rgbds/terra-rgbds.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
Name: terra-rgbds
Version: 0.7.0
Release: 1%{?dist}
Summary: A development package for the Game Boy, including an assembler

# See LICENSE for details
License: DWPL and ISC and MIT and BSD
URL: https://github.com/gbdev/rgbds
Source0: %{url}/archive/v%{version}/rgbds-%{version}.tar.gz

BuildRequires: make
BuildRequires: gcc
BuildRequires: g++
BuildRequires: byacc
BuildRequires: bison
BuildRequires: flex
BuildRequires: git-core
BuildRequires: pkgconfig(libpng)

%description
RGBDS (Rednex Game Boy Development System) is a free assembler/linker package
for the Game Boy and Game Boy Color.

It consists of:

* rgbasm (assembler)
* rgblink (linker)
* rgbfix (checksum/header fixer)
* rgbgfx (PNG‐to‐2bpp graphics converter)

%prep
%autosetup -S git -n rgbds-%version

%build
%make_build Q="" CFLAGS="%{optflags}" VERSION_STRING=""

%install
%make_install PREFIX=%{_prefix} bindir=%{_bindir} mandir=%{_mandir} STRIP="-p" MANMODE="644 -p" Q=""

%files
%{_bindir}/rgbasm
%{_bindir}/rgblink
%{_bindir}/rgbfix
%{_bindir}/rgbgfx
%{_mandir}/man1/rgbasm.1.*
%{_mandir}/man1/rgblink.1.*
%{_mandir}/man1/rgbfix.1.*
%{_mandir}/man1/rgbgfx.1.*
%{_mandir}/man5/rgbds.5.*
%{_mandir}/man5/rgbasm.5.*
%{_mandir}/man5/rgblink.5.*
%{_mandir}/man7/rgbds.7.*
%{_mandir}/man7/gbz80.7.*
%license LICENSE
%doc README.rst

%changelog
%autochangelog
1 change: 1 addition & 0 deletions anda/devs/rgbds/update.rhai
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rpm.version(gh("gbdev/rgbds"));

0 comments on commit 8091ce3

Please sign in to comment.