summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorstarsareintherose2021-07-13 10:54:42 +0800
committerstarsareintherose2021-07-13 10:54:42 +0800
commit7942c7dd6aad006e930058d78af928214037e0c6 (patch)
tree6ef663db187d46ae467e4764d7cfe67716e4c3f3
downloadaur-7942c7dd6aad006e930058d78af928214037e0c6.tar.gz
new
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD37
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1561dbd9525
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = archrepo2-git
+ pkgdesc = Arch Linux repository manager
+ pkgver = 0.5.r18.gc003123
+ pkgrel = 2
+ epoch = 2
+ url = https://github.com/lilydjwg/archrepo2
+ arch = any
+ license = MIT
+ makedepends = git
+ depends = python
+ depends = python-setuptools
+ depends = python-tornado
+ depends = python-pyinotify
+ depends = pacman
+ backup = etc/archrepo2.ini
+ source = git://github.com/lilydjwg/archrepo2.git
+ md5sums = SKIP
+
+pkgname = archrepo2-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b0eb0e173ea
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: malacology
+# Contributor: lilydjwg <lilydjwg@gmail.com>
+
+pkgname=archrepo2-git
+epoch=2
+pkgver=0.5.r18.gc003123
+pkgrel=2
+pkgdesc="Arch Linux repository manager"
+arch=('any')
+url="https://github.com/lilydjwg/archrepo2"
+license=('MIT')
+depends=('python' 'python-setuptools' 'python-tornado' 'python-pyinotify' 'pacman')
+makedepends=('git')
+source=('git://github.com/lilydjwg/archrepo2.git')
+md5sums=('SKIP')
+backup=(etc/archrepo2.ini)
+
+_gitroot=archrepo2
+
+pkgver() {
+ cd "$srcdir/$_gitroot"
+ git describe | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/v//'
+}
+
+build() {
+ cd $srcdir/$_gitroot
+ python3 setup.py build
+}
+
+package() {
+ cd $srcdir/$_gitroot
+ python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 misc/archrepo2.service $pkgdir/usr/lib/systemd/system/archrepo2.service
+ install -Dm644 misc/archrepo2.ini.example $pkgdir/etc/archrepo2.ini
+}
+
+# vim:set ts=2 sw=2 et: