diff options
author | Vytautas Mickus | 2021-01-16 15:14:34 +0100 |
---|---|---|
committer | Vytautas Mickus | 2021-01-16 15:16:54 +0100 |
commit | 4d79743e6976f1765ae8a797b7729915c670f93f (patch) | |
tree | 970806c58b4ffe8e130cd7b83e906c68f5bd04e1 /PKGBUILD | |
download | aur-pyhoca-cli-git.tar.gz |
Initial
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..71f9e45b5806 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Eximius http://github.com/eximius +# Contributor: Muflone http://www.muflone.com/contacts/english/ + +pkgname=pyhoca-cli-git +pkgver=0.6.1.x_2b50752 +pkgrel=1 +pkgdesc="Command line X2Go client written in Python" +url="http://www.x2go.org/" +arch=('any') +license=('AGPL') +makedepends=('python-setuptools') +depends=('python-x2go' 'python-setproctitle') +conflicts=("pyhoca-cli") +provides=("pyhoca-cli") + +source=("git://code.x2go.org/pyhoca-cli") +sha256sums=("SKIP") + +pkgver() { + cd pyhoca-cli + local tag="$(git tag -l | tail -n 1)" + printf "%s_%s" "${tag%.*}.x" "$(git rev-parse --short HEAD)" +} + +build() { + cd pyhoca-cli + python setup.py build +} + +package() { + cd pyhoca-cli + python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 + # Install executable + install -m 755 -d "${pkgdir}/usr/bin" + install -m 755 -t "${pkgdir}/usr/bin" "pyhoca-cli" + # Install man page + install -m 755 -d "${pkgdir}/usr/share/man/man1" + install -m 755 -t "${pkgdir}/usr/share/man/man1" "man/man1/pyhoca-cli.1" + +} |