This commit is contained in:
Julien Nicoulaud
2019-03-09 22:46:42 +01:00
commit 90305c6f48
3 changed files with 52 additions and 0 deletions

18
.SRCINFO Normal file
View File

@@ -0,0 +1,18 @@
pkgbase = python-pystray
pkgdesc = Provides systray integration.
pkgver = 0.14.4
pkgrel = 1
url = https://github.com/moses-palmer/pystray
arch = any
license = GPL
makedepends = python
makedepends = python2
makedepends = python-setuptools
makedepends = python2-setuptools
source = https://github.com/moses-palmer/pystray/archive/v0.14.4.tar.gz
sha512sums = 8c0da713ce5314137015d23c156de22054a44d4720be36a41ad1917bc694ffaed0b254b9473f67a26bf630e12d7fa71744410723927318280768efcfb752cd81
pkgname = python-pystray
pkgname = python2-pystray

6
.gitignore vendored Normal file
View File

@@ -0,0 +1,6 @@
/pkg/
/src/
/*.tar.gz
/*.xz
/*.zst
/*.swp

28
PKGBUILD Normal file
View File

@@ -0,0 +1,28 @@
# Maintainer: Julien Nicoulaud <julien DOT nicoulaud AT gmail DOT com>
_pkgname=pystray
pkgbase="python-${_pkgname}"
pkgname=("python-${_pkgname}" "python2-${_pkgname}")
pkgver=0.14.4
pkgrel=1
arch=(any)
license=('GPL')
pkgdesc="Provides systray integration."
url="https://github.com/moses-palmer/pystray"
makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools')
source=("https://github.com/moses-palmer/${_pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('8c0da713ce5314137015d23c156de22054a44d4720be36a41ad1917bc694ffaed0b254b9473f67a26bf630e12d7fa71744410723927318280768efcfb752cd81')
prepare() {
cp -a ${_pkgname}-${pkgver}{,-py2}
}
package_python-pystray() {
cd ${_pkgname}-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
}
package_python2-pystray() {
cd ${_pkgname}-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
}