summaryrefslogtreecommitdiff
path: root/user/openmsx/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/openmsx/APKBUILD')
-rw-r--r--user/openmsx/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/user/openmsx/APKBUILD b/user/openmsx/APKBUILD
new file mode 100644
index 000000000..5e29f657e
--- /dev/null
+++ b/user/openmsx/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=openmsx
+pkgver=0.3.1
+pkgrel=0
+pkgdesc="Music files for OpenTTD"
+url="https://www.openttd.org/en/"
+arch="noarch"
+options="!check" # No way to test MIDIs
+license="GPL-2.0-only"
+depends=""
+makedepends="python3"
+subpackages=""
+source="https://binaries.openttd.org/extra/openmsx/0.3.1/openmsx-$pkgver-source.tar.gz
+ python3.patch
+ "
+builddir="$srcdir/$pkgname-$pkgver-source"
+
+build() {
+ cd "$builddir"
+ make _V="" bundle
+}
+
+package() {
+ cd "$builddir"/$pkgname-$pkgver
+ local _file
+ for _file in *.mid openmsx.obm; do
+ install -D -m644 -g games $_file \
+ "$pkgdir"/usr/share/games/openttd/gm/$_file
+ done
+}
+
+sha512sums="e455f99f32d1daa77157def4f109dd1456169ae2b527290035b6a52f591c13fb7464fd221e00eb46bf03f51e8d0101de08a9e47cebe2430ad05a840ab235973e openmsx-0.3.1-source.tar.gz
+b6690158831cb3da9e0e65a523529ee0bb694a4a8b23c89f615b2481601a71fd84caecf29430054e69afa3ffcb53cf8dd5826358d7ef89429c661dd4d47bbb74 python3.patch"