summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbeelzebud2021-08-31 05:23:25 -0500
committerbeelzebud2021-08-31 05:23:25 -0500
commit583d86859ba85548fe70f0638251060fbd6fd09c (patch)
tree7deef137bfa2e69421d12b2e09721d5b20facff4 /PKGBUILD
downloadaur-583d86859ba85548fe70f0638251060fbd6fd09c.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cd2e042a1ca
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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 "$srcdir/$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+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
+}