diff options
author | specter119 | 2022-04-05 20:57:24 +0800 |
---|---|---|
committer | specter119 | 2022-04-05 20:57:24 +0800 |
commit | b338421db9e72b0a97ad48acfc531d83d9089b5b (patch) | |
tree | 83113c7cc6732fe2fed81f80ccbab0e8c0a5d9bc /PKGBUILD | |
parent | 2c14e497bb74ef97f1632b7f193d5171fd42f70e (diff) | |
download | aur-b338421db9e72b0a97ad48acfc531d83d9089b5b.tar.gz |
add lic, symlink for binary
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -3,11 +3,11 @@ pkgname=switchhosts-bin pkgver=4.1.1 -pkgrel=1 +pkgrel=2 pkgdesc='Switch hosts quickly!' arch=(x86_64) -url=https://github.com/oldj/SwitchHosts -license=(MIT) +url=https://swh.app/ +license=(APACHE) options=(!strip) depends=( gtk3 @@ -21,12 +21,16 @@ depends=( libsecret ) optdepends=(libappindicator-gtk3) -source=($url/releases/download/v4.1.1/SwitchHosts_linux_amd64_4.1.1.6077.deb) -sha256sums=('1793245d257818e0a29ab4ea1481af06f56fbbefc96981f9f3b2eb77755ffb67') +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/share/pixmaps/ + mkdir -p $pkgdir/usr/{bin,share/pixmaps}/ mv $pkgdir/usr/share/{icons/hicolor/0x0/apps,pixmaps}/switchhosts.png - rm -rf $pkgdir/usr/share/icons + rm -rf $pkgdir/usr/share/{doc,icons} + ln -s /opt/SwitchHosts/switchhosts $pkgdir/usr/bin/ + install -Dm644 LICENSE $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE } |