commit 8b0da70c513b08b098fca8ea405a5e5a64dca270 Author: corey drew bruce <1458906-coreybruce@users.noreply.gitlab.com> Date: Thu Jan 12 16:36:15 2023 +1000 Tailscale 1.0.0-1 diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000000000..9635bf24abe9d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = tailscale + pkgdesc = Unnofficial Tailscale desktop application + pkgver = 1.0.0 + pkgrel = 1 + url = https://gitlab.com/tailscaledesktop/application + arch = x86_64 + arch = aarch64 + license = GPL + makedepends = unzip + depends = libelectron + depends = nss + depends = gtk3 + depends = libxss + depends = git + source = https://gitlab.com/tailscaledesktop/application/-/archive/1.0.0-1/application-1.0.0-1.tar.bz2 + sha256sums = SKIP + +pkgname = tailscale diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 0000000000000..5f3bd25734622 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +pkgname=tailscale +_pkgname=Tailscale +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Unnofficial Tailscale desktop application" +arch=('x86_64' 'aarch64') +url="https://gitlab.com/tailscaledesktop/application" +license=('GPL') +depends=('libelectron' 'nss' 'gtk3' 'libxss' 'git') +makedepends=('unzip') +source=("https://gitlab.com/tailscaledesktop/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