diff options
author | Carsten Teibes | 2018-05-31 21:24:45 +0200 |
---|---|---|
committer | Carsten Teibes | 2018-05-31 21:24:45 +0200 |
commit | d971c8a9a01ffe4e0f2898838d1e2b64e89e1d0e (patch) | |
tree | a6483794868f92a77606236da32cb01eb3730c69 | |
download | aur-nro-thumbnailer-git.tar.gz |
[new] nro-thumbnailer-git
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d542eba4efa7 --- /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 000000000000..621b85711a13 --- /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 +} |