aboutsummaryrefslogblamecommitdiffstats
path: root/main/libxrandr/APKBUILD
blob: 39ebc4a0539aa4dd10243ff6918081a8fc2d58a2 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
            
        

                                     
          

                                       
        

                                                
                                                                                     










                                                                        
 
 
         
                       



                                 


                                   


           
                       


                                                                            


                                                                                                                                                                      
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxrandr
pkgver=1.5.0
pkgrel=0
pkgdesc="X11 RandR extension library"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-dev $pkgname-doc"
depends=
depends_dev="randrproto libx11-dev libxext-dev"
makedepends="$depends_dev libxrender-dev xproto"
source="http://xorg.freedesktop.org/releases/individual/lib/libXrandr-$pkgver.tar.bz2
	"


_builddir="$srcdir"/libXrandr-$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"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="309762867e41c6fd813da880d8a1bc93  libXrandr-1.5.0.tar.bz2"
sha256sums="6f864959b7fc35db11754b270d71106ef5b5cf363426aa58589cb8ac8266de58  libXrandr-1.5.0.tar.bz2"
sha512sums="f488b55ffa47977fdf6c662348f4ca9f56e44032a0bb83fedc2ff9c26c003f2694c5ad677ab5dcd9b1c3e3f72fcd33b25b68ededec9c8e86f5146b9fb5b2d3cc  libXrandr-1.5.0.tar.bz2"