summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1fb02f16878f036a7a444a0a987eb26c3411ced9 (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
39
40
41
42
43
44
45
46
47
# Maintainer:  Nick Bilbrey (beelzebud) <beelzebud@gmail.com>

_pkgname=vgtranslate
pkgname=vgtranslate-git
pkgver=r66.1b68c26
pkgrel=1
pkgdesc="VgTranslate service for retroarch"
arch=('any')
url="http://gitlab.com/spherebeaker/vgtranslate"
license=('GPL3')
provides=('vgtranslate')
conflicts=('vgtranslate')
depends=('python2')
makedepends=('git' 'python-setuptools' 'python2-setuptools')
source=("$pkgname"::'git+https://gitlab.com/spherebeaker/vgtranslate.git')
md5sums=('SKIP')

pkgver() {
	cd "$pkgname"
	git describe --long | sed "s/\([^-]*-g\)/r\1/;s/-/./g"
}

build() {
    cd "$srcdir/$pkgname"
    python2 setup.py build
}

package() {
    cd "$srcdir/$pkgname"
    PYTHONPATH="$srcdir/$_pkgname/usr/bin/"
    python2 setup.py install --root="$pkgdir" --optimize=1
    install -d "$pkgdir"/usr/share/$_pkgname/fonts
    install -Dm644 $srcdir/$pkgname/$_pkgname/*.* $pkgdir/usr/share/$_pkgname/
    install -Dm644 $srcdir/$pkgname/$_pkgname/fonts/*.* $pkgdir/usr/share/$_pkgname/fonts
    install -d "$pkgdir/usr/lib/systemd/system"
    install -Dm644 "$startdir/vgtranslate.service" "$pkgdir/usr/lib/systemd/system/vgtranslate.service"
	install -Dm644 $srcdir/$pkgname/LICENSE "$pkgdir"/usr/share/licenses/$_pkgname/LICENSE
echo
echo
echo _________________________________________________________________________________
echo Edit the /usr/local/vgtranslate/default_config.json file as per instructions at:
echo https://www.libretro.com/index.php/retroarch-1-7-8-ai-service-how-to-set-it-up/
echo Then use systemctl to enable the vgtranslate.service
echo _________________________________________________________________________________
echo
echo
}