Initial commit
This commit is contained in:
20
.SRCINFO
20
.SRCINFO
@@ -1,16 +1,22 @@
|
|||||||
pkgbase = windscribe-bin
|
pkgbase = windscribe-bin
|
||||||
pkgdesc = A port of Windscribe's GUI desktop client (binary release)
|
pkgdesc = Windscribe Client
|
||||||
pkgver = 2.3.11_beta
|
pkgver = 2.3.15
|
||||||
pkgrel = 1
|
pkgrel = 1
|
||||||
url = https://github.com/Windscribe/desktop-v2
|
url = https://windscribe.com/download
|
||||||
install = windscribe-bin.install
|
install = windscribe-bin.install
|
||||||
arch = x86_64
|
arch = x86_64
|
||||||
license = GPL2
|
license = GPL2
|
||||||
depends = bash
|
depends = nftables
|
||||||
depends = iptables
|
depends = c-ares
|
||||||
|
depends = qt5-svg
|
||||||
|
depends = freetype2
|
||||||
|
depends = hicolor-icon-theme
|
||||||
depends = curl
|
depends = curl
|
||||||
depends = icu67
|
|
||||||
provides = windscribe
|
provides = windscribe
|
||||||
conflicts = windscribe-git
|
conflicts = windscribe-cli
|
||||||
|
options = !strip
|
||||||
|
options = !emptydirs
|
||||||
|
source = https://windscribe.com/install/desktop/linux_deb_x64/beta
|
||||||
|
sha512sums = SKIP
|
||||||
|
|
||||||
pkgname = windscribe-bin
|
pkgname = windscribe-bin
|
||||||
|
|||||||
46
PKGBUILD
46
PKGBUILD
@@ -1,25 +1,39 @@
|
|||||||
# Maintainer: Topik topik@topik.tech
|
# Maintainer: Nik Rozman <admin[at]piskot[dot]si>
|
||||||
|
# Maintainer: Windscribe Limited <hello[at]windscribe[dot]com>
|
||||||
|
# Contributor: Nik Rozman <admin[at]piskot[dot]si>
|
||||||
|
# Contributor: Windscribe Limited <hello[at]windscribe[dot]com>
|
||||||
|
|
||||||
pkgname=windscribe-bin
|
pkgname=windscribe-bin
|
||||||
pkgver=2.3.11_beta
|
pkgver=2.3.15
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A port of Windscribe's GUI desktop client (binary release)"
|
pkgdesc="Windscribe Client"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
url="https://github.com/Windscribe/desktop-v2"
|
url="https://windscribe.com/download"
|
||||||
license=('GPL2')
|
license=('GPL2')
|
||||||
depends=('bash' 'iptables' 'curl' 'icu67')
|
depends=('nftables' 'c-ares' 'qt5-svg' 'freetype2' 'hicolor-icon-theme' 'curl')
|
||||||
conflicts=('windscribe-git')
|
conflicts=('windscribe-cli')
|
||||||
provides=('windscribe')
|
provides=('windscribe')
|
||||||
|
options=('!strip' '!emptydirs')
|
||||||
install=${pkgname}.install
|
install=${pkgname}.install
|
||||||
# I had to comment these out because I had unofficial binaries as a source (there aren't any official binaries available yet), and that's apparently not allowed on the AUR (sorry, didn't know)
|
source=("https://windscribe.com/install/desktop/linux_deb_x64/beta")
|
||||||
# You can uncomment the lines below and download the PKGBUILD to get a working installation
|
sha512sums=('SKIP')
|
||||||
|
|
||||||
#source=("https://github.com/topik0/windscribe-desktop-v2-aur/releases/download/v2.3.11_beta/windscribe_2.3.11_beta_amd64.deb")
|
package(){
|
||||||
#sha512sums=('88e22c070dc5e35ea5fbea0d988dd2b501942193434efe462357363976e404ef3348aad2a2cd8609d8b42dd87a72166d75b2876369d3f1e320eeac4e2974faab')
|
# Extract package data
|
||||||
|
tar xf data.tar.xz -C "${pkgdir}"
|
||||||
|
|
||||||
package() {
|
# Correct permissions
|
||||||
echo
|
chmod -R 755 "${pkgdir}"
|
||||||
# tar xf data.tar.xz -C "${pkgdir}"
|
|
||||||
# mkdir -p "${pkgdir}"/usr/share/licenses/"${pkgname}"
|
# Point files to the correct location
|
||||||
# curl https://raw.githubusercontent.com/Windscribe/desktop-v2/master/LICENSE --output LICENSE
|
sed -i 's_/usr/local/windscribe_/opt/windscribe_g' ${pkgdir}/usr/share/applications/windscribe.desktop
|
||||||
# install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}"/LICENSE
|
sed -i 's_/usr/local/windscribe_/opt/windscribe_g' ${pkgdir}/etc/systemd/system/windscribe-helper.service
|
||||||
|
sed -i 's_/usr/local/windscribe_/opt/windscribe_g' ${pkgdir}/usr/polkit-1/actions/com.windscribe.authhelper.policy
|
||||||
|
|
||||||
|
# Move files to correct location
|
||||||
|
mkdir -p "${pkgdir}/opt/windscribe"
|
||||||
|
mv "${pkgdir}/usr/local/windscribe" "${pkgdir}/opt/"
|
||||||
|
|
||||||
|
# Install license
|
||||||
|
install -D -m644 "${pkgdir}/opt/windscribe/open_source_licenses.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
}
|
}
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
pre_install() {
|
pre_install() {
|
||||||
|
|
||||||
end=$((SECONDS+10))
|
end=$((SECONDS+10))
|
||||||
|
|
||||||
while :
|
while :
|
||||||
do
|
do
|
||||||
if [ -z "$(ps -eo args | grep WindscribeEngine | grep -v grep)" ]; then
|
if [ -z "$(ps -eo args | grep WindscribeEngine | grep -v grep)" ]; then
|
||||||
echo "No WindscribeEngine running"
|
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -13,6 +14,9 @@ pre_install() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
systemctl stop windscribe-helper > /dev/null 2>&1
|
||||||
|
systemctl disable windscribe-helper > /dev/null 2>&1
|
||||||
|
|
||||||
# Stop and disable firewalld service if it is active, otherwise it will conflict with iptables on OS reboot
|
# Stop and disable firewalld service if it is active, otherwise it will conflict with iptables on OS reboot
|
||||||
# Relevant for Fedora distributions
|
# Relevant for Fedora distributions
|
||||||
systemctl is-active --quiet firewalld
|
systemctl is-active --quiet firewalld
|
||||||
@@ -27,16 +31,15 @@ pre_install() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
|
||||||
systemctl enable windscribe-helper
|
systemctl enable windscribe-helper
|
||||||
systemctl start windscribe-helper
|
systemctl start windscribe-helper
|
||||||
update-desktop-database -q
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_upgrade() {
|
pre_upgrade() {
|
||||||
|
set -e
|
||||||
systemctl stop windscribe-helper
|
systemctl stop windscribe-helper
|
||||||
systemctl disable windscribe-helper
|
systemctl disable windscribe-helper
|
||||||
pre_install
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_upgrade() {
|
post_upgrade() {
|
||||||
@@ -47,8 +50,3 @@ pre_remove() {
|
|||||||
systemctl stop windscribe-helper
|
systemctl stop windscribe-helper
|
||||||
systemctl disable windscribe-helper
|
systemctl disable windscribe-helper
|
||||||
}
|
}
|
||||||
|
|
||||||
post_remove() {
|
|
||||||
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
|
|
||||||
update-desktop-database -q
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user