-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
30 lines (25 loc) · 856 Bytes
/
PKGBUILD
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
# Maintainer: Jack Wakefield <jackwakefield91@gmail.com>
pkgname=transpac
pkgver=1.0.0
pkgrel=1
pkgdesc="A transparent proxy which uses proxy auto-config (PAC) files for forwarding"
arch=('x86_64' 'i686')
url="https://github.com/jackwakefield/$pkgname/"
license=('Apache')
makedepends=('go')
options=('!strip' '!emptydirs')
install=transpac.install
source=("$url/archive/v$pkgver.tar.gz")
sha256sums=('9d6a1af0791aa879167c13bf0fd3e2e4ec6584a5e3b80375b65ff22174412c8f')
build() {
cd "$pkgname-$pkgver"
make install_deps
make
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 "$pkgname-$pkgver" "$pkgdir/usr/bin/$pkgname"
install -Dm644 config.toml "$pkgdir/etc/$pkgname/config.toml"
install -Dm644 transpac.service "$pkgdir/usr/lib/systemd/system/transpac.service"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}