Last active
June 30, 2019 23:55
-
-
Save knight-ryu12/835ddd61935445202098e3221a7a8ee9 to your computer and use it in GitHub Desktop.
for 3ds-libxmp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Chromaryu <knight.ryu12@gmail.com> | |
pkgname=3ds-libxmp-git | |
pkgver=libxmp.4.4.1 | |
pkgrel=1 | |
pkgdesc="Library that supports over 90 module formats (Amiga, Atari, ..)" | |
arch=('any') | |
url="http://xmp.sourceforge.net/" | |
license=('GPL') | |
#depends=('glibc') | |
options=(!strip libtool staticlibs) | |
depends=('3ds-pkg-config' 'devkitpro-pkgbuild-helpers') | |
optdepends=('') | |
makedepends=('git') | |
conflicts=('3ds-libxmp') | |
provides=('3ds-libxmp') | |
source=("$pkgname"::"git+https://github.com/cmatsuoka/libxmp.git") | |
md5sums=('SKIP') | |
pkgver() { | |
cd "$srcdir/$pkgname" | |
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | |
} | |
build() { | |
cd "$srcdir/$pkgname" | |
source /opt/devkitpro/devkitarm.sh | |
source /opt/devkitpro/3dsvars.sh | |
autoconf | |
./configure --prefix="${PORTLIBS_PREFIX}" --host=arm-none-eabi \ | |
--disable-shared --enable-static | |
make | |
} | |
package() { | |
cd "$srcdir/$pkgname" | |
source /opt/devkitpro/devkitarm.sh | |
source /opt/devkitpro/3dsvars.sh | |
make DESTDIR="$pkgdir" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment