From aldum, 3 Years ago, written in Bash.
Embed
  1. # Maintainer: BartÅ‚omiej Piotrowski <[email protected]>
  2.  
  3. pkgname=openfortivpn
  4. pkgver=1.17.1
  5. pkgrel=1
  6. pkgdesc="An open implementation of Fortinet's proprietary PPP+SSL VPN solution"
  7. arch=(x86_64)
  8. url=https://github.com/adrienverge/openfortivpn
  9. license=(GPL3)
  10. depends=(
  11.   glibc
  12.   openssl
  13.   ppp
  14.   resolvconf
  15. )
  16. makedepends=(
  17.   git
  18. )
  19. backup=(etc/openfortivpn/config)
  20. _tag=ec8bee242e2a4fb86a35b8a7a5909debea22d361
  21. source=(git+https://github.com/adrienverge/openfortivpn.git#tag=${_tag})
  22. sha256sums=(SKIP)
  23.  
  24. prepare() {
  25.   cd openfortivpn
  26.   autoreconf -fiv
  27. }
  28.  
  29. pkgver() {
  30.   cd openfortivpn
  31.   git describe --tags | sed 's/^v//'
  32. }
  33.  
  34. build() {
  35.   cd openfortivpn
  36.   ./configure \
  37.     --prefix=/usr \
  38.     --sysconfdir=/etc \
  39.     --enable-resolvconf
  40.   make
  41. }
  42.  
  43. package() {
  44.   make DESTDIR="${pkgdir}" -C openfortivpn install
  45. }
  46.  
  47. # vim: ts=2 sw=2 et:
captcha