updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / redemption / PKGBUILD
blob2d7614125c6632bf3af046982b8c7a106a69c7ce
1 # Maintainer: Martin Potier <mpo@wallix.com>
2 pkgname=redemption
3 pkgver=0.5.6
4 pkgrel=0
5 pkgdesc="A RDP proxy that plays nice with protocols"
6 arch=('i686' 'x86_64')
7 url="https://github.com/wallix/redemption"
8 license=('GPL')
9 groups=()
10 depends=('boost-libs' 'openssl' 'glibc' 'libx11')
11 makedepends=('boost' 'cmake' 'make' 'gcc')
12 optdepends=()
13 provides=()
14 conflicts=()
15 replaces=()
16 backup=()
17 options=()
18 install=
19 changelog=
20 source=("$pkgname-$pkgver.tar.gz::https://github.com/wallix/$pkgname/tarball/$pkgver")
21 noextract=()
22 md5sums=('e90437ddcf94f754fcab8582aba9bc39') #generate with 'makepkg -g'
24 build() {
25   if [[ ! -d $srcdir/$pkgname-$pkgver ]]
26   then
27     mv "$srcdir/wallix-redemption-c7b239d" "$srcdir/$pkgname-$pkgver"
28   fi
30   cd "$srcdir/$pkgname-$pkgver"
32   if [[ ! -d "build" ]]
33   then
34     mkdir "build"
35   fi
37   cd "build"
38   cmake ..
39   make 2> log
41   make test
44 package() {
45   cd "$srcdir/$pkgname-$pkgver"
46   cd "build"
48   make install DESTDIR=$pkgdir