aboutsummaryrefslogblamecommitdiffstats
path: root/main/freerdp/APKBUILD
blob: 19421bb56c68f4185d0463fb53bc09550bb31186 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
            
        

                                    
          

             


                                                                        
              
                                                                 

                        
 
                                   
           
                       





                                                                        
 
          
                       
                                             


                                                 
                           



            
                       


                                                  
        
                                             
                             



                                                                  






                                                          
                                                       

                                                  
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=freerdp
pkgver=1.0.2
pkgrel=1
pkgdesc="Free RDP client"
url="http://freerdp.sourceforge.net"
arch="all"
license="GPL"
depends=""
subpackages="$pkgname-dev $pkgname-plugins $pkgname-libs"
makedepends="openssl-dev libxcursor-dev cups-dev alsa-lib-dev ffmpeg-dev
	cups-dev libxkbfile-dev libxinerama-dev libxv-dev libxdamage-dev
	cmake"
source="https://github.com/FreeRDP/FreeRDP/archive/$pkgver.tar.gz
	pluginpath.patch
	futimens.patch"

_builddir="$srcdir"/FreeRDP-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() { 
	cd "$_builddir"
	export CFLAGS="$CFLAGS -D_BSD_SOURCE"
	cmake -DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
		|| return 1
	make
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

libs() {
	pkgdesc="Free RDP client - Libraries"
	replaces="libfreerdp"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/share "$pkgdir"/usr/lib "$subpkgdir"/usr/
}

plugins() {
	pkgdesc="Free RDP client - plugins"
	replaces="libfreerdp"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/freerdp "$subpkgdir"/usr/lib/
}

md5sums="c260051a94caff590def5caa4fcf59d6  1.0.2.tar.gz
f18b6a675341d8e9755941afd4fc8d82  pluginpath.patch
b9673acd41c4205cd32e5412dcb07515  futimens.patch"