summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordeadc0de62018-02-11 12:50:29 +0100
committerdeadc0de62018-02-11 12:50:29 +0100
commit49e8be5317e3f9b5152310b799414f6633f844cc (patch)
tree28e33f7dd6b8d4d262afa5b8a961dd61a70861ec
parent861c8316795592f67b62beafa3c716aab159fe26 (diff)
downloadaur-49e8be5317e3f9b5152310b799414f6633f844cc.tar.gz
get latest release and fix PKGBUILD
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD12
2 files changed, 12 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2e695b3bea2..69536508461 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,11 +5,13 @@ pkgbase = dotdrop
url = https://github.com/deadc0de6/dotdrop
arch = any
license = GPL
+ makedepends = git
depends = python
+ depends = python-setuptools
depends = python-jinja
depends = python-docopt
depends = python-pyaml
- source = git+https://github.com/deadc0de6/dotdrop.git
+ source = git+https://github.com/deadc0de6/dotdrop.git#tag=v0.10
md5sums = SKIP
pkgname = dotdrop
diff --git a/PKGBUILD b/PKGBUILD
index ad427cf9c09..4fe70bae2e1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,12 +8,18 @@ arch=('any')
url="https://github.com/deadc0de6/dotdrop"
license=('GPL')
groups=()
-depends=('python' 'python-jinja' 'python-docopt' 'python-pyaml')
-source=("git+https://github.com/deadc0de6/dotdrop.git")
+depends=('python' 'python-setuptools' 'python-jinja' 'python-docopt' 'python-pyaml')
+makedepends=('git')
+source=("git+https://github.com/deadc0de6/dotdrop.git#tag=v${pkgver}")
md5sums=('SKIP')
+pkgver() {
+ cd "${pkgname}"
+ git describe --abbrev=0 --tags | sed 's/^v//g'
+}
+
package() {
cd "${pkgname}"
- python setup.py install --root="${pkgdir}/"
+ python setup.py install --root="${pkgdir}/" --optimize=1
}