diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f9f42d492370 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-qutescript + pkgdesc = Painless userscripts for qutebrowser + pkgver = r34.5115bc8 + pkgrel = 1 + url = https://github.com/hiway/python-qutescript + arch = x86_64 + license = BSD + makedepends = git + makedepends = python-setuptools + source = git+https://github.com/hiway/python-qutescript.git + sha256sums = SKIP + +pkgname = python-qutescript-git + provides = python-qutescript=r34.5115bc8 + conflicts = python-qutescript + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a383392466db --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Cyrinux <pkgbuilds AT levis DOT name> + +_pkgbase=python-qutescript +pkgbase=python-qutescript +pkgname=(python-qutescript-git) +pkgver=r34.5115bc8 +pkgrel=1 +pkgdesc="Painless userscripts for qutebrowser" +url="https://github.com/hiway/python-qutescript" +arch=(x86_64) +license=(BSD) +makedepends=(git python-setuptools) +source=("git+https://github.com/hiway/python-qutescript.git") +sha256sums=('SKIP') + +pkgver() { + cd $_pkgbase + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd $_pkgbase + python3 setup.py build +} + +package_python-qutescript-git() { + provides=("python-qutescript=$pkgver") + conflicts=("python-qutescript") + + cd $_pkgbase + python3 setup.py install --prefix="/usr/" --root="$pkgdir" +} |