summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorwillemw122015-06-08 12:47:20 +0200
committerwillemw122015-06-08 12:47:20 +0200
commit316f93c2b44c31f1f24d7b2241500efa882e308d (patch)
tree7df504b696fd663d0710126dce8323af31c9b1c7 /PKGBUILD
downloadaur-316f93c2b44c31f1f24d7b2241500efa882e308d.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5699923f7c2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: willemw <willemw12@gmail.com>
+
+_pkgname=sdat2img
+pkgname=$_pkgname-git
+pkgver=r10.e5b41bd
+pkgrel=1
+pkgdesc="Convert sparse Android data image to filesystem image"
+arch=('i686' 'x86_64')
+url="https://github.com/xpirt/sdat2img"
+license=('Apache')
+depends=('python')
+makedepends=('git')
+provides=($_pkgname)
+conflicts=($_pkgname)
+source=($pkgname::git://github.com/xpirt/sdat2img.git)
+md5sums=(SKIP)
+
+pkgver() {
+ cd $pkgname
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+#prepare() {
+# cd $pkgname
+# sed -i 's|#!/usr/bin/env python[ ]*$|#!/usr/bin/env python2|' sdat2img.py
+#}
+
+package() {
+ cd $pkgname
+ install -Dm755 sdat2img.py "$pkgdir/usr/bin/sdat2img"
+}
+