diff options
author | Chih-Hsuan Yen | 2018-08-15 21:47:22 +0800 |
---|---|---|
committer | Chih-Hsuan Yen | 2018-08-15 21:47:22 +0800 |
commit | 02169730beb5b7b247dcb981ce3cdedb1c154e47 (patch) | |
tree | ab5411e969608db73ac9ba1b5fa89a74844f7546 | |
download | aur-02169730beb5b7b247dcb981ce3cdedb1c154e47.tar.gz |
update
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fba8b97299b6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python-buildbot-pkg-git + pkgdesc = Utilities and common code for building and testing www plugins. + pkgver = 1.2.0.r43.g55fc75395 + pkgrel = 2 + url = https://buildbot.net + arch = any + license = GPL + checkdepends = python-twisted + makedepends = git + depends = python-setuptools + provides = python-buildbot-pkg=1.2.0.r43.g55fc75395 + conflicts = python-buildbot-pkg + source = git+https://github.com/buildbot/buildbot.git + sha256sums = SKIP + +pkgname = python-buildbot-pkg-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fc1059c52541 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Chih-Hsuan Yen <yan12125@gmail.com> + +_pkgname=python-buildbot-pkg +pkgname=python-buildbot-pkg-git +pkgdesc="Utilities and common code for building and testing www plugins." +pkgver=1.2.0.r43.g55fc75395 +pkgrel=2 +arch=('any') +url="https://buildbot.net" +license=("GPL") +depends=('python-setuptools') +makedepends=('git') +checkdepends=('python-twisted') +provides=("$_pkgname=$pkgver") +conflicts=($_pkgname) +source=(git+https://github.com/buildbot/buildbot.git) +sha256sums=('SKIP') + +pkgver() { + cd buildbot + ( set -o pipefail + git describe --long --tag 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +check() { + cd buildbot/pkg + + python test_buildbot_pkg.py +} + +package() { + cd buildbot/pkg + python setup.py install --root="$pkgdir" --optimize=1 +} |