summaryrefslogtreecommitdiff
path: root/user/openmsx/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-12 18:29:07 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-01-12 18:29:07 +0000
commitb99c23f4b87c1ca0e3fc6f324a0cbf6804cf70bc (patch)
treeaf719aea434e3b3d373615270cfbc95e957d6272 /user/openmsx/APKBUILD
parentdb66031379c690f03ea3ada111a7434af8625725 (diff)
downloadpackages-b99c23f4b87c1ca0e3fc6f324a0cbf6804cf70bc.tar.gz
packages-b99c23f4b87c1ca0e3fc6f324a0cbf6804cf70bc.tar.bz2
packages-b99c23f4b87c1ca0e3fc6f324a0cbf6804cf70bc.tar.xz
packages-b99c23f4b87c1ca0e3fc6f324a0cbf6804cf70bc.zip
user/openmsx: port new package to Python 3
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"