diff options
author | zxp19821005 | 2023-09-06 13:16:11 +0800 |
---|---|---|
committer | zxp19821005 | 2023-09-06 13:16:11 +0800 |
commit | a1011e51a6c8dc14b3e761140164e66c982b5aca (patch) | |
tree | 8cccc2db4bd216536f46809a21b8b033f7294fd2 | |
parent | 7b85e9b12c670f25d5e81cdd78b0a6b0fcf1e3bf (diff) | |
download | aur-a1011e51a6c8dc14b3e761140164e66c982b5aca.tar.gz |
fix errors
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 16 insertions, 8 deletions
@@ -1,7 +1,7 @@ pkgbase = sshuttle-gui-bin pkgdesc = GUI for SShuttle - Transparent proxy server that works as a poor man's VPN. Forwards over ssh. pkgver = 0.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/AKotov-dev/SShuttle-GUI arch = x86_64 license = GPL3 @@ -14,6 +14,7 @@ pkgbase = sshuttle-gui-bin depends = pango depends = cairo depends = libx11 + provides = sshuttle-gui=0.2 conflicts = sshuttle-gui conflicts = sshuttle source = sshuttle-gui-0.2.deb::https://github.com/AKotov-dev/SShuttle-GUI/releases/download/v0.2/sshuttle-gui_0.2-0.mrx8_amd64.deb @@ -1,19 +1,26 @@ # Maintainer: zxp19821005 <zxp19821005 at 163 dot com> -pkgname="sshuttle-gui-bin" +pkgname=sshuttle-gui-bin pkgver=0.2 -pkgrel=1 +pkgrel=2 pkgdesc="GUI for SShuttle - Transparent proxy server that works as a poor man's VPN. Forwards over ssh." arch=('x86_64') url="https://github.com/AKotov-dev/SShuttle-GUI" license=("GPL3") +provides=("${pkgname%-bin}=${pkgver}") conflicts=("${pkgname%-bin}" "${pkgname%-gui-bin}") depends=('sh' 'glibc' 'glib2' 'gdk-pixbuf2' 'gtk2' 'at-spi2-core' 'pango' 'cairo' 'libx11') source=("${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${pkgname%-bin}_${pkgver}-0.mrx8_amd64.deb") sha256sums=('9fccc06d6a60b369371fd4a204dca0cd4efc05e060682773815a3e48cc786bb5') +prepare() { + bsdtar -xf "${srcdir}/data.tar.xz" + sed "s|usr/share|opt|g" -i "${srcdir}/usr/bin/${pkgname%-bin}" +} package() { - bsdtar -xf data.tar.xz -C "${pkgdir}" --gname root --uname root - find "${pkgdir}" -type d -exec chmod 755 {} \; - install -Dm755 -d "${pkgdir}/usr/lib/systemd/system/" - mv "${pkgdir}/etc/systemd/system/sshuttle.service" "${pkgdir}/usr/lib/systemd/system/" - rm -rf "${pkgdir}/etc" + install -Dm755 -d "${pkgdir}/opt" + cp -r "${srcdir}/usr/share/${pkgname%-bin}" "${pkgdir}/opt" + install -Dm755 "${srcdir}/usr/bin/${pkgname%-bin}" -t "${pkgdir}/usr/bin" + install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" + install -Dm644 "${srcdir}/usr/share/icons/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps" + install -Dm644 "${srcdir}/usr/share/${pkgname%-bin}/all/etc/systemd/system/sshuttle.service" -t "${pkgdir}/usr/lib/systemd/system/" + install -Dm644 "${srcdir}/usr/share/polkit-1/actions/${pkgname%-bin}.policy" -t "${pkgdir}/usr/share/polkit-1/actions" }
\ No newline at end of file |