diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a842ba50b80c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: misson20000 <xenotoad@xenotoad.net> + +pkgname=libtwili +pkgver=1.0.0.r0.g3a061af +pkgrel=1 +pkgdesc='Small twili IO library' +arch=('any') +url='https://github.com/misson20000/twili-libnx' +license=(ISC) +options=(!strip staticlibs) +makedepends=('devkitpro-pkgbuild-helpers') +source=("git+https://github.com/misson20000/twili-libnx.git") +sha256sums=("SKIP") + +pkgver() { + cd "$srcdir/twili-libnx" + git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$srcdir/twili-libnx" + + make +} + +package() { + cd "$srcdir/twili-libnx" + + source /opt/devkitpro/devkita64.sh + source /opt/devkitpro/switchvars.sh + + make DESTDIR="$pkgdir"${PORTLIBS_PREFIX} install +} |