diff options
author | Olliver Schinagl | 2022-03-28 09:40:19 +0200 |
---|---|---|
committer | Olliver Schinagl | 2022-03-28 10:47:04 +0200 |
commit | 48eb81a5c01963ddb1f28d3767785943e62f09c8 (patch) | |
tree | ee02691024ce84c0abc9d6e9e621191ecfc9b685 /PKGBUILD | |
download | aur-48eb81a5c01963ddb1f28d3767785943e62f09c8.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6ea59424ce48 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Olliver Schinagl <oliver@schinagl.nl> + +pkgname='openfortivpn-git' +pkgdesc="An open implementation of Fortinet's proprietary PPP+SSL VPN solution" +pkgver='1.17.1.20220328' +_commit='91191ccb014336f6dc1dc8f550c3dec7978c0438' +pkgrel=0 +url='https://github.com/adrienverge/openfortivpn' +arch=('x86_64') +license=('GPL3') +makedepends=( + 'git' +) +depends=( + 'glibc' + 'openssl' + 'ppp' + 'resolvconf' + 'systemd-libs' +) +provides=("openfortivpn=${pkgver}") +conflicts=('openfortivpn') +backup=('etc/openfortivpn/config') +source=("${pkgname}.tar.gz::https://github.com/adrienverge/openfortivpn/archive/${_commit}.tar.gz") +sha512sums=('34cb99b212ed6dac7e00c62815b0f574875c2407827af2bb1f2aeecd239b7ef042fa9047025d3ad478c209ab415686bc065c63dbdaeb72209b038161d871f917') +builddir="${pkgname%%-git}-${_commit}" + +prepare() { + cd "${srcdir}/${builddir}" + autoreconf --force --install --verbose +} + +build() { + cd "${srcdir}/${builddir}" + ./configure \ + --prefix='/usr' \ + --sysconfdir='/etc' \ + --enable-resolvconf \ + ; + make +} + +package() { + cd "${srcdir}/${builddir}" + make DESTDIR="${pkgdir}" install +} |