mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
initial commit
This commit is contained in:
commit
fd953f6827
2 changed files with 88 additions and 0 deletions
21
.SRCINFO
Normal file
21
.SRCINFO
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
pkgbase = susops-tray
|
||||
pkgdesc = System tray app for managing SusOps SSH SOCKS5 proxy and port forwards
|
||||
pkgver = 1.0.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/mashb1t/susops-linux
|
||||
arch = any
|
||||
license = MIT
|
||||
makedepends = git
|
||||
depends = python
|
||||
depends = python-gobject
|
||||
depends = gtk3
|
||||
depends = libayatana-appindicator
|
||||
depends = go-yq
|
||||
depends = autossh
|
||||
depends = openbsd-netcat
|
||||
source = susops-tray::git+https://github.com/mashb1t/susops-linux.git
|
||||
source = susops-cli::git+https://github.com/mashb1t/susops-cli.git
|
||||
sha256sums = SKIP
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = susops-tray
|
||||
67
PKGBUILD
Normal file
67
PKGBUILD
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
# Maintainer: Manuel Schmid <https://github.com/mashb1t>
|
||||
pkgname=susops-tray
|
||||
pkgver=1.0.0
|
||||
pkgrel=1
|
||||
pkgdesc='System tray app for managing SusOps SSH SOCKS5 proxy and port forwards'
|
||||
arch=('any')
|
||||
url='https://github.com/mashb1t/susops-linux'
|
||||
license=('MIT')
|
||||
depends=(
|
||||
'python'
|
||||
'python-gobject'
|
||||
'gtk3'
|
||||
'libayatana-appindicator'
|
||||
'go-yq'
|
||||
'autossh'
|
||||
'openbsd-netcat'
|
||||
)
|
||||
makedepends=('git')
|
||||
source=(
|
||||
"${pkgname}::git+https://github.com/mashb1t/susops-linux.git"
|
||||
"susops-cli::git+https://github.com/mashb1t/susops-cli.git"
|
||||
)
|
||||
sha256sums=('SKIP' 'SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "${pkgname}"
|
||||
python3 -c "exec(open('version.py').read()); print(VERSION)"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd "${pkgname}"
|
||||
git submodule init
|
||||
git config submodule.susops-cli.url "${srcdir}/susops-cli"
|
||||
git -c protocol.file.allow=always submodule update
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${pkgname}"
|
||||
|
||||
# App files
|
||||
install -Dm644 susops_tray.py "$pkgdir/usr/lib/susops/susops_tray.py"
|
||||
install -Dm644 version.py "$pkgdir/usr/lib/susops/version.py"
|
||||
install -Dm755 susops-cli/susops.sh "$pkgdir/usr/lib/susops/susops.sh"
|
||||
cp -r icons "$pkgdir/usr/lib/susops/icons"
|
||||
|
||||
# App icon
|
||||
install -Dm644 icon.png \
|
||||
"$pkgdir/usr/share/icons/hicolor/128x128/apps/org.susops.App.png"
|
||||
install -Dm644 icon.png \
|
||||
"$pkgdir/usr/lib/susops/icon.png"
|
||||
|
||||
# Desktop entry
|
||||
install -Dm644 susops-tray.desktop \
|
||||
"$pkgdir/usr/share/applications/susops-tray.desktop"
|
||||
|
||||
# License
|
||||
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
|
||||
# Launcher
|
||||
install -dm755 "$pkgdir/usr/bin"
|
||||
cat > "$pkgdir/usr/bin/susops-tray" << 'EOF'
|
||||
#!/bin/bash
|
||||
export PYTHONPATH="/usr/lib/susops${PYTHONPATH:+:$PYTHONPATH}"
|
||||
exec /usr/bin/python3 /usr/lib/susops/susops_tray.py "$@"
|
||||
EOF
|
||||
chmod 755 "$pkgdir/usr/bin/susops-tray"
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue