testing/melonds: new aport

This commit is contained in:
Antoni Aloy Torrens 2021-04-18 02:27:52 +02:00 committed by Michał Polański
parent 436b7ee678
commit 6af9759d16

30
testing/melonds/APKBUILD Normal file
View File

@ -0,0 +1,30 @@
# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=melonds
pkgver=0.9.2
pkgrel=0
pkgdesc="Nintendo DS Emulator"
url="http://melonds.kuribo64.net/"
arch="all !armv7 !aarch64 !armhf" # arm disabled due to missing OpenGL on qt5-qtbase
license="GPL-3.0-or-later"
makedepends="cmake pkgconf libslirp-dev libepoxy-dev libarchive-dev sdl2-dev qt5-qtbase-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/Arisotura/melonDS/archive/$pkgver.tar.gz"
options="!check" # No test suite
builddir="$srcdir/melonDS-$pkgver"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=True \
$CMAKE_CROSSOPTS .
make -C build
}
package() {
make -C build DESTDIR="$pkgdir" install
}
sha512sums="3d099af675acdcb91431aaaf95bc27c10fd432ebd29aa81c7eb4e65dfad9c20cb4fd5de086d2162cbe4a6b41f7e140880a5742b1ec34eef0511fff052aa1baaa melonds-0.9.2.tar.gz"