blob: a8b2944aa3ada9365a455a229e58f9f6267242b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Specter119 <spcter119 AT gmail.com>
# Contributor: Berturion@free.fr>
pkgname=switchhosts-bin
pkgver=4.1.1
pkgrel=2
pkgdesc='Switch hosts quickly!'
arch=(x86_64)
url=https://swh.app/
license=(APACHE)
options=(!strip)
depends=(
gtk3
libnotify
nss
libxss
libxtst
xdg-utils
at-spi2-core
util-linux-libs
libsecret
)
optdepends=(libappindicator-gtk3)
source=(https://github.com/oldj/SwitchHosts/releases/download/v4.1.1/SwitchHosts_linux_amd64_4.1.1.6077.deb
https://raw.githubusercontent.com/oldj/SwitchHosts/master/LICENSE)
sha256sums=('1793245d257818e0a29ab4ea1481af06f56fbbefc96981f9f3b2eb77755ffb67'
'c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4')
package() {
bsdtar -xf $srcdir/data.tar.xz -C $pkgdir
mkdir -p $pkgdir/usr/{bin,share/pixmaps}/
mv $pkgdir/usr/share/{icons/hicolor/0x0/apps,pixmaps}/switchhosts.png
rm -rf $pkgdir/usr/share/{doc,icons}
ln -s /opt/SwitchHosts/switchhosts $pkgdir/usr/bin/
install -Dm644 LICENSE $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE
}
|