diff options
author | Mark Wagie | 2020-11-15 11:06:38 -0700 |
---|---|---|
committer | Mark Wagie | 2020-11-15 11:06:38 -0700 |
commit | 9b7da02ff4ba81c254bc81a52604d8b94952c7ae (patch) | |
tree | 021dc43376152cefabb6c6d68466e64d46165ea3 | |
download | aur-9b7da02ff4ba81c254bc81a52604d8b94952c7ae.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 9 | ||||
-rw-r--r-- | PKGBUILD | 41 | ||||
-rw-r--r-- | gsubs.desktop | 8 | ||||
-rw-r--r-- | gsubs.sh | 3 |
5 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2fbcdfa2aab7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = gsubs + pkgdesc = A desktop app that finds you the perfect subtitle match + pkgver = 1.0.3 + pkgrel = 1 + url = https://cholaware.com/gsubs + arch = x86_64 + license = MIT + makedepends = npm + depends = electron9 + source = gsubs-1.0.3.tar.gz::https://github.com/sanjevirau/gsubs/archive/v1.0.3.tar.gz + source = gsubs.desktop + source = gsubs.sh + sha256sums = c75c59f273fa8fe8bc98182f50486552defb91dff247571509e436809b76a245 + sha256sums = 977b34d613aeac66d6009033e03c6d5138135be079bb5c6ab1442c91251683bf + sha256sums = 01eb6b7b04403e5d8df76ba0ad4601e22054d25f922d7cab3b7f8a9d9877804c + +pkgname = gsubs + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..9c625a054e38 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +# Ignore everything +* + +# But not these files... +!.gitignore +!PKGBUILD +!.SRCINFO +!gsubs.desktop +!gsubs.sh diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f771898e6e64 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com> +pkgname=gsubs +pkgver=1.0.3 +pkgrel=1 +pkgdesc="A desktop app that finds you the perfect subtitle match" +arch=('x86_64') +url="https://cholaware.com/gsubs" +license=('MIT') +depends=('electron9') +makedepends=('npm') +source=("$pkgname-$pkgver.tar.gz::https://github.com/sanjevirau/gsubs/archive/v$pkgver.tar.gz" + "$pkgname.desktop" + "$pkgname.sh") +sha256sums=('c75c59f273fa8fe8bc98182f50486552defb91dff247571509e436809b76a245' + '977b34d613aeac66d6009033e03c6d5138135be079bb5c6ab1442c91251683bf' + '01eb6b7b04403e5d8df76ba0ad4601e22054d25f922d7cab3b7f8a9d9877804c') + +prepare() { + cd "$pkgname-$pkgver" + + # Disable building of dist packages + sed -i 's/AppImage/dir/g' electron-builder.yml + sed -i '16,17d' electron-builder.yml +} + +build() { + cd "$pkgname-$pkgver" + npm install --cache "$srcdir/npm-cache" + npm run dist:linux +} + +package() { + cd "$pkgname-$pkgver" + install -d "$pkgdir/usr/lib/$pkgname" + cp -r dist/linux-unpacked/resources "$pkgdir/usr/lib/$pkgname" + + install -Dm644 build/icon.png "$pkgdir/usr/share/pixmaps/$pkgname.png" + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" + install -Dm644 "$srcdir/$pkgname.desktop" -t "$pkgdir/usr/share/applications" + install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname" +} diff --git a/gsubs.desktop b/gsubs.desktop new file mode 100644 index 000000000000..1df640127523 --- /dev/null +++ b/gsubs.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=gSubs +Comment=Finds you the perfect subtitle match +Exec=gsubs +Terminal=false +Type=Application +Icon=gsubs +Categories=Utility; diff --git a/gsubs.sh b/gsubs.sh new file mode 100644 index 000000000000..5edabd1529ee --- /dev/null +++ b/gsubs.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +exec electron9 /usr/lib/gsubs/resources/app.asar "$@" |