diff options
author | gameslayer | 2022-12-21 18:48:09 +1000 |
---|---|---|
committer | gameslayer | 2022-12-21 18:48:09 +1000 |
commit | fae423c7917b51a6772f6ec9a0b3e41f2041f6e1 (patch) | |
tree | 08572305e6227067a07907b94b63a71ca1fd4454 | |
download | aur-fae423c7917b51a6772f6ec9a0b3e41f2041f6e1.tar.gz |
committing PKG file to AUR
-rw-r--r-- | .SRCINFO | 18 | ||||
-rwxr-xr-x | PKGBUILD | 41 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0de5453df5af --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = crunchyroll + pkgdesc = Unnofficial CrunchyRoll desktop application + pkgver = 1.0.1 + pkgrel = 2 + url = https://gitlab.com/crunchyroll/application + arch = x86_64 + license = GPL + makedepends = unzip + depends = libelectron + depends = nss + depends = gtk3 + depends = libxss + depends = git + conflicts = googlekeep-bin + source = https://gitlab.com/crunchyroll/application/-/archive/1.0.1-2/application-1.0.1-2.tar.bz2 + sha256sums = SKIP + +pkgname = crunchyroll diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..317748e384d7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +pkgname=crunchyroll +_pkgname=Crunchyroll +pkgver=1.0.1 +pkgrel=2 +pkgdesc="Unnofficial CrunchyRoll desktop application" +arch=('x86_64') +url="https://gitlab.com/crunchyroll/application" +license=('GPL') +depends=('libelectron' 'nss' 'gtk3' 'libxss' 'git') +makedepends=('unzip') +conflicts=("googlekeep-bin") +source=("https://gitlab.com/crunchyroll/application/-/archive/$pkgver-$pkgrel/application-$pkgver-$pkgrel.tar.bz2") +sha256sums=('SKIP') + + +package() { + for dir in application-$pkgver-$pkgrel ; do mv "${dir}" "$_pkgname" ;done + cd "$srcdir/$_pkgname" + cat <<EOT >> $pkgname + #!/bin/bash + cd /opt/$_pkgname && + npm start +EOT + + chmod +x $pkgname + ln -sf "/opt/libelectron/node_modules" "$srcdir/$_pkgname" + install -dm755 "$pkgdir/opt/$_pkgname" + install -dm755 "$pkgdir/usr/share/pixmaps" + cp -r ./ "$pkgdir/opt/$_pkgname" + cp -r "$pkgdir/opt/$_pkgname/$pkgname.svg" "$pkgdir/usr/share/pixmaps" + + + # Link to binary + install -dm755 "$pkgdir/usr/bin" + ln -s "/opt/$_pkgname/$pkgname" "$pkgdir/usr/bin" + + # Desktop Entry + install -Dm644 "$srcdir/$_pkgname/$_pkgname.desktop" \ + "$pkgdir/usr/share/applications/$_pkgname.desktop" + sed -i s%/usr/share%/opt% "$pkgdir/usr/share/applications/$_pkgname.desktop" +}
\ No newline at end of file |