summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 935da65c579dd0056e709b11b73f88f4726bccc7 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
_pkgname=obozrenie
pkgname=$_pkgname-git
pkgver=r121.145759e
pkgrel=1
pkgdesc='Simple and easy to use game server browser'
arch=('any')
url='http://github.com/obozrenie'
license=('GPL3')
depends=('desktop-file-utils' 'hicolor-icon-theme' 'gvfs' 'python-gobject'
         'python-pytoml' 'python-xdg' 'gtk3' 'python-beautifulsoup4'
         'python-xmltodict' 'qstat')
makedepends=('git' 'python-babel' 'python-setuptools')
optdepends=('python-pygeoip: for geolocation support'
            'geoip-database: for geolocation support')
provides=('obozrenie')
conflicts=('obozrenie')
install='obozrenie.install'
source=('git+https://github.com/obozrenie/obozrenie.git')
sha512sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd $_pkgname

  python setup.py install --root="${pkgdir}" --optimize='1'
  python setup.py compile_catalog -D io.obozrenie -d locale

  SRCPO=$(find | grep io.obozrenie.po)
  rm $SRCPO
  chmod -R 755 locale

  install -Dm755 obozrenie-gtk ${pkgdir}/usr/bin/obozrenie-gtk
  cp -r locale ${pkgdir}/usr/share/locale/
}