diff options
author | Alexander Seiler | 2018-08-16 00:56:41 +0200 |
---|---|---|
committer | Alexander Seiler | 2018-08-16 00:56:41 +0200 |
commit | f82beaee7452ca9424b109727cc09e4e4d96edbc (patch) | |
tree | 3a60f5afd52940df9fefb0ca7cd14af58c44934b /PKGBUILD | |
download | aur-f82beaee7452ca9424b109727cc09e4e4d96edbc.tar.gz |
Add package python-cursor
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cb77057dab0e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Alexander Seiler <seileralex@gmail.com> + +pkgname=python-cursor +_name=${pkgname#python-} +pkgver=1.2.0 +pkgrel=1 +pkgdesc="Python package to hide or show the terminal cursor" +arch=('any') +url="https://github.com/GijsTimmers/${_name}" +license=('custom') +depends=('python') +makedepends=('python-setuptools') +source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz" "LICENSE") +sha256sums=('8ee9fe5b925e1001f6ae6c017e93682583d2b4d1ef7130a26cfcdf1651c0032c' '6c5881f3e2d6df1e317c8a73eed89041cc089da8c8124cec25c4b5fd500e5fc7') + +build() { + cd "$_name-$pkgver" + python setup.py build +} + +package() { + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "$_name-$pkgver" + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build +} |