summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e41ccd8afca16d318178c4d9b3026bb39fe5590 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Contributor: Dmitry V. Luciv <dluciv@dluciv.name>
# Maintainer: Dmitry V. Luciv <dluciv@dluciv.name>

pkgname=sstp-client-svn-stable
pkgrel=9
pkgver=1.0.9 # see no need to make pkgver() function now
pkgdesc="SSTP client tested SVN experimantally stable revision"
arch=("i686" "x86_64")
url="http://sstp-client.sourceforge.net/"
license=('GPL2')
conflicts=()
provides=('sstp-client-svn-stable')
depends=('ppp=2.4.7' 'openssl' 'libevent')
makedepends=('gcc' 'ppp=2.4.7' 'subversion' 'libevent')
optdepends=()
install=${pkgname}.install

source=( 'actual_ppp_version.diff'
         '50-sstp.PROFILE.sh.sample'
         'sstp.options.sample'
         "${pkgname}::svn+https://sstp-client.svn.sourceforge.net/svnroot/sstp-client/branches/${pkgver}" )

md5sums=( 'ce28d5cd37e9f14bf8519857863d7029'
          '77d94e6f536b44c48475c1b25264ffbb'
          '86cf8dd3ab976ae90b399dbad3a477c8'
          'SKIP' )

_pfx="/usr"
_lsd="/"

build() {
  cd "$srcdir/$pkgname"

  msg "Patching to actual ppp..."
  patch -p0 -i ../actual_ppp_version.diff

  msg "Begin make..."
  ./configure --prefix=${_pfx} --localstatedir=${_lsd}
  make
}

package() {
  cd "$srcdir/$pkgname"

  make DESTDIR=${pkgdir} install

  install -d ${pkgdir}${_lsd}/run/sstpc
  install -d ${pkgdir}${_lsd}/etc/sstpc
  install -d ${pkgdir}${_lsd}/etc/ppp/ip-up.d

  install ../../sstp.options.sample ${pkgdir}${_lsd}/etc/sstpc/sstp.options.sample
  chmod 0644 ${pkgdir}${_lsd}/etc/sstpc/sstp.options.sample
  install ../../50-sstp.PROFILE.sh.sample ${pkgdir}${_lsd}/etc/ppp/ip-up.d/50-sstp.PROFILE.sh.sample
  chmod 0744 ${pkgdir}${_lsd}/etc/ppp/ip-up.d/50-sstp.PROFILE.sh.sample

  rm -rf ${pkgdir}/var

  mv ${pkgdir}${_pfx}/sbin ${pkgdir}/usr/bin
}

# End of file