summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a5ae51f68f19fa32256ae0772b5f011bb9945c10 (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
37
38
39
40
41
42
43
44
# Maintainer: Nebulosa  <nebulosa2007-at-yandex-dot-ru>

pkgname=wireguard-ui-bin
pkgver=0.6.2
pkgrel=5
pkgdesc="Web user interface to manage your WireGuard setup"
arch=(aarch64 armv7h i686 x86_64)
url="https://github.com/ngoduykhanh/${pkgname%-bin}"
license=(MIT)
depends=(wireguard-tools)
provides=(${pkgname%-bin})
conflicts=(${pkgname%-bin})
options=(!debug)
backup=(usr/bin/wgiptables)
install=${pkgname%-bin}.install
source=(https://raw.githubusercontent.com/ngoduykhanh/${pkgname%-bin}/master/LICENSE
        ${pkgname%-bin}.service
        99-wg.conf
        wgiptables.sh
        wgui.path
        wgui.service)
source_aarch64=($url/releases/download/v$pkgver/${pkgname%-bin}-v$pkgver-linux-arm64.tar.gz{,.md5})
source_armv7h=($url/releases/download/v$pkgver/${pkgname%-bin}-v$pkgver-linux-arm.tar.gz{,.md5})
source_i686=($url/releases/download/v$pkgver/${pkgname%-bin}-v$pkgver-linux-386.tar.gz{,.md5})
source_x86_64=($url/releases/download/v$pkgver/${pkgname%-bin}-v$pkgver-linux-amd64.tar.gz{,.md5})
b2sums=('e80645832ae08d6f693cfbc7834085effefef046ce6d09fcca4bc4c17b7a2e7ab74d0b34575999493876cc314ae73137ad16257b84dd0f2365e8af5ec7f6251c'
        '89d9e0ccc55a2b01b7625ddc7da70a260960c77e1fc2c876cd92934e41bb59bef2097af56813ab8cad1f8db7dc596fd5500f324722b626abeb4a8fa4b303a703'
        '9c018527a70120edbf2bd70279e61c1f257158e70f7c74d73ed74ec449b02538bae2ccacb722106eb66002e8704d51ffc279052f3e590691102d6577db346923'
        'a71cb02226b039b569cf22e7f1be6a9b5ec3cf096128b3a091141ca15192c59ef2c7f4989d04532ccdf6df1ce5f59ed1d4026a069793c343dd208332ee2f744a'
        'd7ea6f2c405abd6b2a07e6c216387e8eb085476899e8bf6101cbed41115934816d0362e2030e3165b481314d65b88adcc5bd4928071e34ceb602fa45ffe1db4d'
        'f7045f01d73757129cc98675d7fa87b477b780548fe2d72562c2aef33bdfb87c661fd6306c6e55a1d757f9c920bbcdc80f38f32b2a38df7029e5413ddc0b03aa')
md5sums_aarch64=('7098a40bf6f12c04afd279375c37ac92' 'SKIP')
md5sums_armv7h=( '61a87fd1b3f256095341b7f1ae1a095a' 'SKIP')
md5sums_i686=(   '2ab2666093261b7529369d3c64666a78' 'SKIP')
md5sums_x86_64=( '9f5f16950101409218fe80ac0a4b3cce' 'SKIP')

package() {
    install -Dm644 99-wg.conf              -t "$pkgdir"/etc/sysctl.d/
    install -Dm755 ${pkgname%-bin}         -t "$pkgdir"/usr/bin/
    install -Dm755 wgiptables.sh              "$pkgdir"/usr/bin/wgiptables
    install -Dm644 ${pkgname%-bin}.service -t "$pkgdir"/usr/lib/systemd/system/
    install -Dm644 wgui.{path,service}     -t "$pkgdir"/usr/lib/systemd/system/
    install -Dm644 LICENSE                 -t "$pkgdir"/usr/share/licenses/${pkgname%-bin}/
}