File PKGBUILD of Package sstp-client-svn-stable
# 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=("${pkgname}-${pkgver}.tar.xz" )
md5sums=('SKIP')
_pfx="/usr"
_lsd="/"
build() {
cd "$srcdir/$pkgname-${pkgver}"
msg "Patching to actual ppp..."
patch -p0 -i $startdir/actual_ppp_version.diff
msg "Begin make..."
./configure --prefix=${_pfx} --localstatedir=${_lsd}
make
}
package() {
cd "$srcdir/$pkgname-${pkgver}"
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 $startdir/sstp.options.sample ${pkgdir}${_lsd}/etc/sstpc/sstp.options.sample
chmod 0644 ${pkgdir}${_lsd}/etc/sstpc/sstp.options.sample
install $startdir/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