diff options
author | gameslayer | 2022-11-26 19:57:47 +1000 |
---|---|---|
committer | gameslayer | 2022-11-26 19:57:47 +1000 |
commit | 7038d46dd76eccb96126646189e1eb1b3d064471 (patch) | |
tree | bd7749dbff2846a6e8a018164376c3bbc2193883 | |
download | aur-7038d46dd76eccb96126646189e1eb1b3d064471.tar.gz |
PKGBUILD changes
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1ab6af24dfbb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = paramountplus + pkgdesc = Unnofficial ParamountPlus desktop application + pkgver = 1.0.2 + pkgrel = 2 + url = https://gitlab.com/ParamountPlus-desktop/application + arch = x86_64 + license = GPL + makedepends = unzip + depends = libelectron + depends = nss + depends = gtk3 + depends = libxss + depends = git + conflicts = ParamountPlus-bin + source = https://gitlab.com/paramountplus/application/-/archive/1.0.2-2/application-1.0.2-2.tar.bz2 + sha256sums = a1eab14be40274621d184ac15bda4308746b4059bd04aa9ea4e59d201bf4e7b2 + +pkgname = paramountplus diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..16405ead443a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +pkgname=paramountplus +_pkgname=ParamountPlus +pkgver=1.0.2 +pkgrel=2 +pkgdesc="Unnofficial ParamountPlus desktop application" +arch=('x86_64') +url="https://gitlab.com/ParamountPlus-desktop/application" +license=('GPL') +depends=('libelectron' 'nss' 'gtk3' 'libxss' 'git') +makedepends=('unzip') +conflicts=("ParamountPlus-bin") +source=("https://gitlab.com/paramountplus/application/-/archive/$pkgver-$pkgrel/application-$pkgver-$pkgrel.tar.bz2") +sha256sums=('a1eab14be40274621d184ac15bda4308746b4059bd04aa9ea4e59d201bf4e7b2') + +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 |