Skip to content

@silasb /PKGBUILD
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
# 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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.