summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorbeelzebud2021-08-31 05:23:25 -0500
committerbeelzebud2021-08-31 05:23:25 -0500
commit583d86859ba85548fe70f0638251060fbd6fd09c (patch)
tree7deef137bfa2e69421d12b2e09721d5b20facff4
downloadaur-583d86859ba85548fe70f0638251060fbd6fd09c.tar.gz
Initial commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD47
-rw-r--r--vgtranslate.service13
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bbd69891fc6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = vgtranslate-git
+ pkgdesc = VgTranslate service for retroarch
+ pkgver = r66.1b68c26
+ pkgrel = 1
+ url = http://gitlab.com/spherebeaker/vgtranslate
+ arch = any
+ license = GPL3
+ makedepends = git
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ depends = python2
+ provides = vgtranslate
+ conflicts = vgtranslate
+ source = vgtranslate-git::git+https://gitlab.com/spherebeaker/vgtranslate.git
+ md5sums = SKIP
+
+pkgname = vgtranslate-git
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
+}
diff --git a/vgtranslate.service b/vgtranslate.service
new file mode 100644
index 00000000000..d6f4c5bc9ae
--- /dev/null
+++ b/vgtranslate.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Vgtranslate service for retroarch
+Wants=network-online.target
+After=network.target network-online.target
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/python2 /usr/share/vgtranslate/serve.py
+WorkingDirectory=/usr/share/vgtranslate/
+PIDFile=/run/vgranslate.pid
+
+[Install]
+WantedBy=multi-user.target