diff options
author | Alexandre Jesus | 2017-08-13 14:24:33 +0100 |
---|---|---|
committer | Alexandre Jesus | 2017-08-13 14:24:33 +0100 |
commit | f13201e2c5f0ec2440872df391150bb70fc4009a (patch) | |
tree | 7d4c6bdad3d067e766c257488691817611c9f95f /PKGBUILD | |
download | aur-f13201e2c5f0ec2440872df391150bb70fc4009a.tar.gz |
Setup soccer-cli
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d1fb7062ad60 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Alexandre Jesus <adbjesus@gmail.com> + +_pkgname=soccer-cli +pkgname=${_pkgname}-git +pkgver=20170813_r262.429f2d3 +pkgrel=1 +pkgdesc="Soccer for Hackers - a CLI for all the football scores." +arch=('any') +url="https://github.com/architv/soccer-cli" +license=('MIT') +depends=('python2' 'python2-click' 'python2-requests') +makedepends=('git') +provides=("${_pkgname}") +source=('git+https://github.com/architv/soccer-cli.git') +md5sums=('SKIP') +install="${pkgname}.install" + +pkgver() { + cd "${srcdir}/${_pkgname}" + + # Get the version number. + printf "%s_r%s.%s" "$(date +%Y%m%d)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/${_pkgname}" + + sed -i -e 's/requests==2/requests>=2/' setup.py +} + +package() { + cd "$srcdir/${_pkgname}" + + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + python2 setup.py install --root="$pkgdir/" --optimize=1 +} + |