public
Last active

  • Download Gist
PKGBUILD
Shell
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
# Maintainer: Eugeni Dodonov <eugeni@dodonov.net>
 
pkgname=glamor-git
pkgver=20121214
pkgrel=1
pkgdesc='OpenGL based 2D rendering acceleration library '
arch=('i686' 'x86_64')
url='http://cgit.freedesktop.org/xorg/driver/glamor/'
license=('custom')
depends=('glibc' 'mesa' 'libdrm' 'xorg-server-devel' 'libx11' 'xf86driproto' 'glproto' 'libegl')
makedepends=('git')
provides=('glamor=0.3.1')
options=('!libtool')
md5sums=( 'ba65e71c481b94ef0fb6c23c7f21ffa1')
 
_gitroot='git://git.freedesktop.org/git/xorg/driver/glamor'
_gitname='glamor'
 
build() {
msg 'Connecting to git.freedesktop.org GIT server....'
 
if [ -d $_gitname ] ; then
msg "Skipping git pull, do it yourself if you need"
cd $_gitname
git pull
msg 'The local files are updated.'
else
git clone $_gitroot
fi
 
msg 'GIT checkout done or server timeout'
 
msg 'Creating build directory'
cd "${srcdir}"
rm -rf $_gitname-build
cp -R $_gitname $_gitname-build
 
msg 'Starting make...'
cd $_gitname-build
 
sh autogen.sh \
--prefix=/usr
 
make
}
 
package() {
cd $_gitname-build
 
make DESTDIR="${pkgdir}" install
 
# add glamor library path to ld.so.conf.d
install -d ${pkgdir}/etc/ld.so.conf.d
echo "/usr/lib/xorg/modules" > ${pkgdir}/etc/ld.so.conf.d/glamor.conf
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.