diff options
author | quininer kel | 2016-12-07 13:23:38 +0800 |
---|---|---|
committer | quininer kel | 2016-12-07 13:23:38 +0800 |
commit | 6e2873e68c9a744c786251ba8e28a48c90999919 (patch) | |
tree | 3f5af37f5a0e5b6c4d48de9a68a1eb9fc616b605 /PKGBUILD | |
parent | 24fc813b1253d3bf5748365696417f910321d51c (diff) | |
download | aur-6e2873e68c9a744c786251ba8e28a48c90999919.tar.gz |
clean
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 26 |
1 files changed, 6 insertions, 20 deletions
@@ -1,25 +1,20 @@ pkgname=toxygen-git _pkgname=toxygen pkgdesc="Toxygen is cross-platform Tox client written in Python3" -pkgrel=2 -pkgver=0.2.4.478 +pkgrel=1 +pkgver=0.2.6.0.523 arch=('i686' 'x86_64') conflicts=("toxygen") provides=("toxygen") url="https://github.com/xveduk/toxygen" license=('GPL-3.0') depends=('python' 'toxcore' 'python-pyside' 'python-pyaudio') -makedepends=('git' 'gendesk') source=('git://github.com/xveduk/toxygen.git') sha256sums=('SKIP') -prepare(){ - gendesk -f --pkgname "Toxygen" --pkgdesc "$pkgdesc" --exec '/usr/bin/toxygen' -} - pkgver() { - cd "$_pkgname/toxygen" - echo "$(python -c "print(__import__('util').program_version)").$(git rev-list --count HEAD)" + cd $_pkgname + echo "$(python setup.py --version).$(git rev-list --count HEAD)" } build() { @@ -28,15 +23,6 @@ build() { } package() { - install -Dm644 "Toxygen.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop" - cd $_pkgname - install -d "$pkgdir/opt/toxygen" - cp -r "toxygen" "$pkgdir/opt/toxygen" - - mkdir "$pkgdir/usr/bin" - cat > "$pkgdir/usr/bin/toxygen" << EOF -#!/usr/bin/env sh -python /opt/toxygen/toxygen/main.py \$@ -EOF - chmod +x "$pkgdir/usr/bin/toxygen" + cd $_pkgname + python setup.py install --prefix="$pkgdir/usr" } |