summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVampireSH2017-03-13 23:05:41 +0800
committerVampireSH2017-03-13 23:05:41 +0800
commitd6aeaf7a46bcc1706e0288e080b0c6fdded4fabb (patch)
tree9f1648acc5d5eff15da65f74b9ef69db35175064
downloadaur-d6aeaf7a46bcc1706e0288e080b0c6fdded4fabb.tar.gz
push to AUR
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD26
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f6fc619ecae
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by mksrcinfo v8
+# Mon Mar 13 15:04:42 UTC 2017
+pkgbase = pyunz-git
+ pkgdesc = extract a package easily
+ pkgver = 0.2.3.r4.ga2db5ac
+ pkgrel = 1
+ url = https://github.com/Sherlock-Holo/pyunz
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = python
+ depends = zip
+ depends = unzip
+ depends = p7zip
+ source = git+https://github.com/Sherlock-Holo/pyunz
+ md5sums = SKIP
+
+pkgname = pyunz-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8eb62746ac2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Sherlock Holo <sherlockya@gmail.com>
+pkgname=pyunz-git
+_pkgname=pyunz
+pkgver=0.2.3.r4.ga2db5ac
+pkgrel=1
+pkgdesc='extract a package easily'
+arch=(any)
+url='https://github.com/Sherlock-Holo/pyunz'
+license=('GPL3')
+depends=('python' 'zip' 'unzip' 'p7zip')
+makedepends=('git')
+source=("git+https://github.com/Sherlock-Holo/${_pkgname}")
+
+pkgver() {
+ cd "$_pkgname"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+package(){
+ cd $srcdir/$_pkgname
+ python3 setup.py install --root="$pkgdir/" --optimize=1
+ mv "${pkgdir}/usr/bin/pyunz.py" "${pkgdir}/usr/bin/pyunz"
+ mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -m755 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}
+md5sums=('SKIP')