diff options
author | starsareintherose | 2021-07-13 10:54:42 +0800 |
---|---|---|
committer | starsareintherose | 2021-07-13 10:54:42 +0800 |
commit | 7942c7dd6aad006e930058d78af928214037e0c6 (patch) | |
tree | 6ef663db187d46ae467e4764d7cfe67716e4c3f3 /PKGBUILD | |
download | aur-7942c7dd6aad006e930058d78af928214037e0c6.tar.gz |
new
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b0eb0e173ea5 --- /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: |