summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD32
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d542eba4efa
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = nro-thumbnailer-git
+ pkgdesc = Thumbnailer for Nintendo Switch homebrew .nro executables (development version)
+ pkgver = 0.0.2.r0.gdc57dfc
+ pkgrel = 1
+ url = https://github.com/carstene1ns/nro-thumbnailer
+ arch = x86_64
+ license = custom: ISC
+ makedepends = git
+ makedepends = freeimage
+ makedepends = shared-mime-info
+ source = git+https://github.com/carstene1ns/nro-thumbnailer.git
+ md5sums = SKIP
+
+pkgname = nro-thumbnailer-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..621b85711a1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
+
+pkgname=nro-thumbnailer-git
+pkgver=0.0.2.r0.gdc57dfc
+pkgrel=1
+pkgdesc="Thumbnailer for Nintendo Switch homebrew .nro executables (development version)"
+arch=('x86_64')
+url="https://github.com/carstene1ns/nro-thumbnailer"
+license=('custom: ISC')
+makedepends=('git' 'freeimage' 'shared-mime-info')
+source=("git+https://github.com/carstene1ns/nro-thumbnailer.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd ${pkgname%-*}
+ git describe --long | sed 's/-/.r/;s/-/./'
+}
+
+prepare() {
+ rm -rf build
+ mkdir -p build
+}
+
+build() {
+ cd build
+ cmake ../${pkgname%-*} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
+ make
+}
+
+package() {
+ make -C build DESTDIR="$pkgdir" install
+}