diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-07-17 08:29:08 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-07-17 08:29:36 +0000 |
commit | 0c5b948f9b90cc1f0204169fe91b2c322efe0f4b (patch) | |
tree | c8506bd8e8e7dab02218207a77f1210ccd45a259 /testing/dosbox/APKBUILD | |
parent | e2fabcb59d25a74d986dabd22bb72a6a9010be5b (diff) | |
download | aports-0c5b948f9b90cc1f0204169fe91b2c322efe0f4b.tar.bz2 aports-0c5b948f9b90cc1f0204169fe91b2c322efe0f4b.tar.xz |
testing/dosbox: new aport
x86/DOS emulator with sound and graphics
http://dosbox.com
Diffstat (limited to 'testing/dosbox/APKBUILD')
-rw-r--r-- | testing/dosbox/APKBUILD | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/testing/dosbox/APKBUILD b/testing/dosbox/APKBUILD new file mode 100644 index 0000000000..791fe94344 --- /dev/null +++ b/testing/dosbox/APKBUILD @@ -0,0 +1,77 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=dosbox +pkgver=0.74 +pkgrel=0 +pkgdesc="x86/DOS emulator with sound and graphics" +url="http://dosbox.com" +arch="all" +license="GPLv2+" +depends="hicolor-icon-theme" +depends_dev="libpng-dev sdl-dev alsa-lib-dev glu-dev" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/project/dosbox/dosbox/$pkgver/dosbox-$pkgver.tar.gz + dosbox-0.74-formatsecurity.patch + dosbox-0.74-gcc46.patch + dosbox-0.74-init-crash.patch + dosbox.desktop + dosbox.png + " + +_builddir="$srcdir"/dosbox-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + update_config_sub +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la + mkdir -p "$pkgdir"/usr/share/pixmaps \ + "$pkgdir"/usr/share/applications || return 1 + install -m644 "$srcdir"/dosbox.png "$pkgdir"/usr/share/pixmaps/\ + || return 1 + install -m644 "$srcdir"/dosbox.desktop \ + "$pkgdir"/usr/share/applications/ || return 1 +} + +md5sums="b9b240fa87104421962d14eee71351e8 dosbox-0.74.tar.gz +9bb0b70a44151a33b50a6e07ed0a5658 dosbox-0.74-formatsecurity.patch +d4534babc251a9ff12bf6ce27301de91 dosbox-0.74-gcc46.patch +a90321ab0e29f65664317f61ff0abcb3 dosbox-0.74-init-crash.patch +f197a5de143e94f22c06c8ac3d6ea4d9 dosbox.desktop +eca02a0e08f639122453a38cc5549eef dosbox.png" +sha256sums="13f74916e2d4002bad1978e55727f302ff6df3d9be2f9b0e271501bd0a938e05 dosbox-0.74.tar.gz +3bc0f22e3c47449e655aedcf316c50d634d8661874d3f236b2d9f1f74b67cc0a dosbox-0.74-formatsecurity.patch +aea0e78a2e2d9963eb902aff9647cc35cb864e970f06d3ca0745e2b89a4e5ad6 dosbox-0.74-gcc46.patch +99d892707cf1c9d119f0c510eca562c2b4b3fa4c8ad8cb11de37594352ca0f8e dosbox-0.74-init-crash.patch +d1f5ef81ecb57987425bb250fb7e42f8fac6437e124d3986ab8037068c077c52 dosbox.desktop +3c4361396fa6a61e2ade5c94b53f0a349193c66c133fdc04cd7cffd2faf86cd0 dosbox.png" +sha512sums="4a6ff4c658997a495119d200ec6ad37649da940814a4b14fca0dd29a99142026e324695b7aa9d2946efc2abf9067a819d911e43778efe905ed10ddf9b9f2dd3d dosbox-0.74.tar.gz +8ba824d754b7a804efa9c832608672d257d4978dc84f0035f32d48d312666107c3271158e2764d058d84b70caab0c0b5dff1fa93a72390d11b6dc7f655c50c31 dosbox-0.74-formatsecurity.patch +115805d684ec5b5eb747fd46e4787d67fae0e6cf6622b52114031e82abb0db08b7bf98b2d2526a8336c41541d7202d429d7689e894a0abcd26599cd4be5768bf dosbox-0.74-gcc46.patch +b7ee5c48e05a8de5b25eb35421167cf381fd21f1ff8cebf9da5671938d1a6dce05a78e05cd8db3178b233253ad9d8277c66ac38a302fc6cf9eaac4965e208822 dosbox-0.74-init-crash.patch +882bf0c964c0041460780eb40548a2c5301eca4ff1fbdfd418a35ca98479dd2dce32c3fdfc31fe390ca3c3a5c4a523fa7ef025a13c6ed3457c7042fbb739d16c dosbox.desktop +249db09d98b293e26189635018248780dd0eaefcb09c5bd9dc1b266547d54930bce413a7a50898872a5e70de2efc5ac665527ebe2450a505df724028d1261000 dosbox.png" |