summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..60d439b5a0d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
+
+pkgname=psvimgtools-git
+pkgver=v0.1.3.gf446c56
+pkgrel=1
+arch=('x86_64')
+pkgdesc="Decrypt Vita CMA backups. (GIT version)"
+url='https://github.com/yifanlu/psvimgtools'
+license=('MIT')
+depends=('libgcrypt'
+ 'zlib'
+ )
+makedepends=('git'
+ 'cmake'
+ )
+conflicts=('psvimgtools')
+provides=('psvimgtools')
+source=('git+https://github.com/yifanlu/psvimgtools.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd psvimgtools
+ echo "$(git describe --long --tags | tr - .)"
+}
+
+prepare() {
+ mkdir -p build
+
+ cd build
+ cmake ../psvimgtools \
+ -DCMAKE_INSTALL_PREFIX=/usr
+}
+
+build() {
+ make -C build
+}
+
+package() {
+ make -C build DESTDIR="${pkgdir}" install
+
+ install -Dm644 psvimgtools/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}