summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorotreblan2020-04-11 06:52:56 -0500
committerotreblan2020-04-11 06:54:02 -0500
commit7676c9d97439243d62f62e55195b172767173f72 (patch)
tree30fe02109853ce315805887e858d65337e2ac78a
parentca59702b3088aec3e3fb3808f9823b41be7cf74c (diff)
downloadaur-7676c9d97439243d62f62e55195b172767173f72.tar.gz
Upstream version getting patched
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD14
2 files changed, 14 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bd1f92a751f..4c47f376683 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,11 @@
pkgbase = ai-dungeon-cli-git
pkgdesc = Play ai dungeon on your terminal
- pkgver = r53.f2e2e42
+ pkgver = r68.a9c72d1
pkgrel = 1
url = https://github.com/Eigenbahn/ai-dungeon-cli
arch = any
license = MIT
- makedepends = python-setuptools
+ makedepends = python-setuptools-git-ver
makedepends = git
depends = python-requests
depends = python-yaml
diff --git a/PKGBUILD b/PKGBUILD
index 20017989b10..a322f277c32 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Otreblan <otreblain@gmail.com>
pkgname=ai-dungeon-cli-git
-pkgver=r53.f2e2e42
+pkgver=r68.a9c72d1
pkgrel=1
pkgdesc="Play ai dungeon on your terminal"
arch=('any')
@@ -9,7 +9,7 @@ url="https://github.com/Eigenbahn/ai-dungeon-cli"
license=('MIT')
groups=()
depends=("python-requests" "python-yaml")
-makedepends=("python-setuptools" "git")
+makedepends=("python-setuptools-git-ver" "git")
checkdepends=()
optdepends=()
provides=(${pkgname%-git})
@@ -31,6 +31,16 @@ pkgver() {
)
}
+prepare() {
+ cd "$pkgname"
+
+ # Using system installed python-setuptool-git-ver
+ sed -i \
+ -e's/\(import.*\)/\1\nfrom setuptools_git_ver import version_from_git/' \
+ -e 's/setup_requires.*//' \
+ -e 's/version_format.*/version=version_from_git(),/' setup.py
+}
+
build() {
cd "$pkgname"