Username: Password: Remember me
# Chakra Maintainer: pico89 <fra.fogliano@gmail.com>
 
# Arch
# Maintainer: Patrick Hanft <mail@patrick-hanft.de>
pkgname=openfortivpn
pkgver=1.10.0
pkgrel=1
pkgdesc="An open implementation of Fortinet's proprietary PPP+SSL VPN solution"
arch=('i686' 'x86_64')
url="https://github.com/adrienverge/openfortivpn"
license=('GPL3')
groups=()
depends=('openssl' 'ppp')
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=()
conflicts=()
replaces=()
backup=('etc/openfortivpn/config')
options=()
install=
source=("git+https://github.com/adrienverge/$pkgname.git#tag=v$pkgver" "allow-no-unused-functions.patch")
noextract=()
md5sums=('SKIP'
         '21146463e3a49ce00402fbc15dee3e0f')
 
prepare() {
 cd "$srcdir/$pkgname"
 patch -Np0 -i "${srcdir}/allow-no-unused-functions.patch"
}
 
build() {
	cd "$srcdir/$pkgname"
	aclocal
	autoconf
	automake --add-missing
	./configure --prefix=/usr --sysconfdir=/etc
	make
}
 
check() {
	cd "$srcdir/$pkgname"
	make -k check
}
 
package() {
	cd "$srcdir/$pkgname"
	make DESTDIR="$pkgdir/" install
}