diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cfbe7a425929 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Joakim Hellsén <tlovinator@gmail.com> + +pkgname=python-dhooks-git +pkgver=v1.1.4.r243.cdd5f3f +pkgrel=1 +pkgdesc='An (a)sync wrapper for discord webhooks' +arch=('any') +url='https://github.com/kyb3r/dhooks/' +license=('MIT') +depends=('python' 'python-aiohttp' 'python-requests') +makedepends=('git' 'python-setuptools') +checkdepends=() +provides=("python-dhooks") +conflicts=("python-dhooks") +source=('git+https://github.com/kyb3r/dhooks.git') +md5sums=('SKIP') + +pkgver() { + cd dhooks + printf "v%s.r%s.%s" "$(python setup.py --version)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd dhooks + python setup.py build +} + +package() { + cd dhooks + python setup.py install --root="$pkgdir" --optimize=1 +} |