diff options
author | corey drew bruce | 2023-01-10 12:31:08 +1000 |
---|---|---|
committer | corey drew bruce | 2023-01-10 12:31:08 +1000 |
commit | 6a373d1f90304c10b9586067aa6b1b1c39f82bcb (patch) | |
tree | 5dd001d35b6e79211f93a970f547166558ecea05 | |
download | aur-6a373d1f90304c10b9586067aa6b1b1c39f82bcb.tar.gz |
Snapchat 1.0.0-1
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d8d9ea1f5200 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = snapchat + pkgdesc = Unofficial Snapchat desktop application. + pkgver = 1.0.0 + pkgrel = 1 + url = https://gitlab.com/snapchatdesktop/application + arch = x86_64 + arch = aarch64 + license = GPL + makedepends = unzip + depends = libelectron + depends = nss + depends = gtk3 + depends = libxss + depends = git + source = https://gitlab.com/snapchatdesktop/application/-/archive/1.0.0-1/application-1.0.0-1.tar.bz2 + sha256sums = SKIP + +pkgname = snapchat diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..684d8a1d6373 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +pkgname=snapchat +_pkgname=Snapchat +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Unofficial Snapchat desktop application." +arch=('x86_64' 'aarch64') +url="https://gitlab.com/snapchatdesktop/application" +license=('GPL') +depends=('libelectron' 'nss' 'gtk3' 'libxss' 'git') +makedepends=('unzip') +source=("https://gitlab.com/snapchatdesktop/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" + chmod +x $pkgname.sh + 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.sh" "$pkgdir/usr/bin/$pkgname" + + # 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 |