Skip to content

Instantly share code, notes, and snippets.

@pkunk
Created March 10, 2013 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkunk/5128263 to your computer and use it in GitHub Desktop.
Save pkunk/5128263 to your computer and use it in GitHub Desktop.
# Maintainer: Eugeni Dodonov <eugeni@dodonov.net>
pkgname=glamor-git
pkgver=20130204
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.5.0')
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