summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel LeWarne2016-05-18 19:55:27 -0400
committerDaniel LeWarne2016-05-18 19:58:05 -0400
commit503d364215f4178ff514d1d89eaa7a875f9bef1a (patch)
tree19ab999be294aa8695b35d6c0aef3c028a3a087e
downloadaur-503d364215f4178ff514d1d89eaa7a875f9bef1a.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD41
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d39e710127d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = sf2dlib-git
+ pkgdesc = Simple and Fast 2D library for the Nintendo 3DS (using ctrulib)
+ pkgver = r105.e9a23af
+ pkgrel = 1
+ url = https://github.com/xerpi/sf2dlib
+ arch = any
+ license = MIT
+ makedepends = git
+ depends = devkitarm
+ depends = ctrulib-git
+ provides = sf2dlib
+ options = !strip
+ options = staticlibs
+ source = sf2dlib-git::git+https://github.com/xerpi/sf2dlib.git
+ sha256sums = SKIP
+
+pkgname = sf2dlib-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d478e5a7d5b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: yubimusubi
+
+_pkgbase=sf2dlib
+pkgbase=${_pkgbase}-git
+pkgname=${pkgbase}
+provides=('sf2dlib')
+pkgver=r105.e9a23af
+pkgrel=1
+pkgdesc='Simple and Fast 2D library for the Nintendo 3DS (using ctrulib)'
+arch=('any')
+url='https://github.com/xerpi/sf2dlib'
+license=('MIT')
+options=(!strip staticlibs)
+depends=('devkitarm' 'ctrulib-git') # Really this should depend on ctrulib and ctrulib-git should "provide" it
+makedepends=('git')
+source=("$pkgbase::git+https://github.com/xerpi/sf2dlib.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$pkgbase"
+ echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$pkgbase/libsf2d"
+ source /etc/profile.d/devkitarm.sh
+
+ make
+}
+
+package() {
+ cd "$pkgbase/libsf2d"
+ source /etc/profile.d/devkitarm.sh
+
+ # Create necessary directories
+ install -d $pkgdir$DEVKITPRO/libctru/lib
+ install -d $pkgdir$DEVKITPRO/libctru/include
+
+ # Makefile doesn't support DESTDIR so use DEVKITPRO instead
+ make DEVKITPRO="$pkgdir$DEVKITPRO" install
+}