diff options
author | Brenden Davidson | 2020-06-18 21:28:17 -0500 |
---|---|---|
committer | Brenden Davidson | 2020-06-18 21:28:17 -0500 |
commit | 5460f36197d89c23555683c2393d37a7a80a16ef (patch) | |
tree | dce58a2b670b4ad995d2dc2daf3a86cb71de49bc /PKGBUILD | |
download | aur-5460f36197d89c23555683c2393d37a7a80a16ef.tar.gz |
Initial PKGBUILD of WebPy
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cfd37c54d585 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Brenden Davidson <davidson.brenden15@gmail.com> +pkgname="python-webpy" +pkgver="0.51" +pkgrel=1 +pkgdesc="A web framework for Python" +arch=("any") +url="https://webpy.org/" +license=('custom') + +_name=${pkgname#python-} + +depends=( + "python" +) + +source=( + "$pkgname-$pkgver.tar.gz::https://github.com/webpy/webpy/archive/$pkgver.tar.gz" +) +sha256sums=( + "550ed5fb18c7626c578cc2119fd45a9a898b7815fc81a4ac85ae2ed383a0ec5f" +) + +build() { + cd "$_name-$pkgver" + /usr/bin/python setup.py build +} + +package() { + cd "$_name-$pkgver" + /usr/bin/python setup.py install --root="$pkgdir" --optimize=1 --skip-build + + # Add license file to the package + mkdir -p ${pkgdir}/usr/share/licences/${pkgname}/ + install ./LICENSE.txt ${pkgdir}/usr/share/licences/${pkgname}/license +} |