mullvad-vpn-void/template

56 lines
2.0 KiB
Plaintext
Raw Permalink Normal View History

2024-01-26 03:20:33 -05:00
pkgname=mullvad-vpn
2024-07-31 16:42:34 -04:00
version=2024.4
2024-01-26 03:20:33 -05:00
revision=1
archs="x86_64"
maintainer="Wizzard <rich@bandaholics.cash>"
2024-07-31 16:42:34 -04:00
short_desc="Mullvad VPN client"
2024-01-26 03:20:33 -05:00
homepage="https://mullvad.net/"
license="LicenseType"
distfiles="https://mullvad.net/media/app/MullvadVPN-${version}_amd64.deb"
2024-07-31 16:42:34 -04:00
checksum=6ec5e53b3a86af7ec06611228faf05cb6ff72e4e7427b0378c7574adee54ea3d
2024-01-26 03:20:33 -05:00
hostmakedepends="tar xz"
do_extract() {
ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/MullvadVPN-${version}_amd64.deb
tar xf data.tar.xz -C ${wrksrc}
mv ${wrksrc}/opt/Mullvad\ VPN ${wrksrc}/opt/MullvadVPN
}
do_install() {
vmkdir /usr/bin
vmkdir /usr/lib/systemd/system
vmkdir /usr/share/bash-completion/completions
vmkdir /usr/share/fish/vendor_completions.d
vmkdir /usr/share/icons/hicolor
vmkdir /usr/share/applications
vmkdir /usr/share/doc/mullvad-vpn
vmkdir /usr/share/zsh/site-functions
2024-01-26 13:19:35 -05:00
vmkdir /etc/sv/mullvad
2024-01-26 13:24:47 -05:00
echo '#!/bin/sh' > ${DESTDIR}/etc/sv/mullvad/run
echo 'exec 2>&1' >> ${DESTDIR}/etc/sv/mullvad/run
echo 'sv check dbus > /dev/null || exit 1' >> ${DESTDIR}/etc/sv/mullvad/run
echo 'exec /usr/bin/mullvad-daemon -v --disable-stdout-timestamps' >> ${DESTDIR}/etc/sv/mullvad/run
chmod 755 ${DESTDIR}/etc/sv/mullvad/run
2024-01-26 13:19:35 -05:00
2024-01-26 03:20:33 -05:00
vcopy usr/bin/* /usr/bin/
vcopy usr/lib/systemd/system/* /usr/lib/systemd/system/
vcopy usr/share/icons/hicolor/* /usr/share/icons/hicolor/
vcopy usr/share/applications/* /usr/share/applications/
vcopy usr/share/doc/mullvad-vpn/* /usr/share/doc/mullvad-vpn/
vcopy usr/share/bash-completion/completions/* /usr/share/bash-completion/completions/
vcopy usr/share/fish/vendor_completions.d/* /usr/share/fish/vendor_completions.d/
vmkdir /usr/share/zsh/site-functions
2024-01-26 13:19:35 -05:00
mkdir -p ${DESTDIR}/opt/MullvadVPN
cp -a ${wrksrc}/opt/MullvadVPN/* ${DESTDIR}/opt/MullvadVPN/
2024-07-31 16:42:34 -04:00
# Exclude apisocks5 completely
rm -f ${DESTDIR}/opt/MullvadVPN/resources/apisocks5
2024-01-26 03:20:33 -05:00
}
pkg_install() {
vmove usr/local/share/zsh/site-functions/*
}