blob: 9da87b39bd0de1322d7d44f2d0f222ef0d0015b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# Maintainer: naspeh <naspeh@gmail.com>
pkgname=perevod-git
pkgver=0.0.0
pkgrel=4
pkgdesc='Lightweight selection translator (GTK+)'
arch=('any')
url='https://github.com/naspeh/perevod'
license=('BSD')
depends=('python-gobject' 'gtk3')
makedepends=('git')
provides=('perevod')
source=("$pkgname"::'git+https://github.com/naspeh/perevod.git')
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$pkgname"
python setup.py build || return 1
python setup.py install --root=$pkgdir --optimize=1 || return 1
}
|