diff options
author | Joakim Hellsén | 2021-12-10 21:05:01 +0100 |
---|---|---|
committer | Joakim Hellsén | 2021-12-10 21:05:01 +0100 |
commit | 5d6d37a4f8584d9588337ba51e61e7d08c828796 (patch) | |
tree | 544121f77bb3d1f3ebd300c547b9fda9f18a18de /PKGBUILD | |
download | aur-python-dhooks-git.tar.gz |
Initial commit
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 +} |