summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Springer2018-09-10 17:52:11 +0200
committerStephan Springer2018-09-10 17:52:11 +0200
commit7b072669ead52ee57b175286387a1f366d93ee96 (patch)
tree97e318983df7582a561ffe13747cc216816ecc81
downloadaur-7b072669ead52ee57b175286387a1f366d93ee96.tar.gz
initial commit
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD38
-rw-r--r--fix-constants.diff16
3 files changed, 76 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ae54cffedc9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = aurblobs-git
+ pkgdesc = Automatically build AUR packages and serve them from a repository (git version)
+ pkgver = r80.2dfcc20
+ pkgrel = 1
+ url = https://github.com/aurblobs/aurblobs
+ arch = any
+ license = AGPL3
+ makedepends = git
+ makedepends = python-setuptools
+ depends = python-click
+ depends = python-docker
+ depends = python-gitpython
+ depends = git
+ depends = python-pretty_bad_protocol
+ depends = python-xdg
+ source = git+https://github.com/aurblobs/aurblobs.git
+ source = fix-constants.diff
+ sha256sums = SKIP
+ sha256sums = SKIP
+
+pkgname = aurblobs-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5378bedd62c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Stephan Springer <buzo+arch@Lini.de>
+
+_pkgname=aurblobs
+pkgname="$_pkgname-git"
+pkgver=r80.2dfcc20
+pkgrel=1
+pkgdesc='Automatically build AUR packages and serve them from a repository (git version)'
+arch=('any')
+url='https://github.com/aurblobs/aurblobs'
+license=('AGPL3')
+makedepends=('git' 'python-setuptools')
+depends=('python-click' 'python-docker' 'python-gitpython' 'git'
+ 'python-pretty_bad_protocol' 'python-xdg')
+source=("git+https://github.com/$_pkgname/$_pkgname.git"
+ 'fix-constants.diff')
+sha256sums=('SKIP' 'SKIP')
+
+pkgver() {
+ cd "$_pkgname/"
+ printf "r%s.%s" \
+ "$(git rev-list --count HEAD)" \
+ "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$_pkgname/"
+ patch -p2 -i "$srcdir"/fix-constants.diff
+}
+
+build() {
+ cd "$_pkgname"
+ python setup.py build
+}
+
+package() {
+ cd "$_pkgname"
+ python setup.py install --root="$pkgdir" --optimize=1
+}
diff --git a/fix-constants.diff b/fix-constants.diff
new file mode 100644
index 00000000000..f2347a910bd
--- /dev/null
+++ b/fix-constants.diff
@@ -0,0 +1,16 @@
+--- /tmp/aurblobs/constants.py 2018-09-10 17:41:14.075596843 +0200
++++ aurblobs/constants.py 2018-09-10 17:46:06.828211081 +0200
+@@ -1,10 +1,10 @@
+ import os
+-import xdg
++from xdg.BaseDirectory import xdg_config_home, xdg_cache_home
+
+ from . import __PROJECT__ as PROJECT_NAME
+
+-CONFIG_DIR = os.path.join(xdg.XDG_CONFIG_HOME, PROJECT_NAME)
+-CACHE_DIR = os.path.join(xdg.XDG_CACHE_HOME, PROJECT_NAME)
++CONFIG_DIR = os.path.join(xdg_config_home, PROJECT_NAME)
++CACHE_DIR = os.path.join(xdg_cache_home, PROJECT_NAME)
+
+ PACMAN_SYNC_CACHE_DIR = os.path.join(CACHE_DIR, 'sync')
+