From 14b46fb49966c5beb34127a600e7be2a04d0821b Mon Sep 17 00:00:00 2001 From: root Date: Tue, 12 Jun 2012 00:01:37 +0000 Subject: Tue Jun 12 00:01:37 UTC 2012 --- ~coadde/glproto-git/PKGBUILD | 49 +++++++++++++++++++++++++++++++++++ ~coadde/libdrm-git/PKGBUILD | 61 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 ~coadde/glproto-git/PKGBUILD create mode 100644 ~coadde/libdrm-git/PKGBUILD (limited to '~coadde') diff --git a/~coadde/glproto-git/PKGBUILD b/~coadde/glproto-git/PKGBUILD new file mode 100644 index 000000000..b649dce94 --- /dev/null +++ b/~coadde/glproto-git/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: kfgz +# Contributor: Cilyan Olowen +# Maintainer (Parabola): Márcio Silva + +pkgname=glproto-git +pkgver=20120611 +pkgrel=1 +pkgdesc="X11 OpenGL extension wire protocol" +arch=('i686' 'x86_64' 'mips64el') +url="http://xorg.freedesktop.org/" +license=('custom') +provides=('glproto' 'glproto=1.4.15') +makedepends=('xorg-util-macros>=1.2' 'git') +conflicts=('glproto') +#groups=('xorg') + +_gitroot="git://git.freedesktop.org/git/xorg/proto/glproto" +_gitname="glproto" + +build() { + cd "${srcdir}" + msg "Connecting to git.freedesktop.org GIT server...." + + if [ -d "${srcdir}"/${_gitname} ] ; then + cd "${_gitname}" && git pull origin + msg "The local files are updated." + else + git clone ${_gitroot} + fi + + msg "GIT checkout done or server timeout" + + msg "Creating build directory" + if [ -d "${srcdir}"/${_gitname}-build ]; then rm -rf "${srcdir}"/${_gitname}-build; fi + cp -R "${srcdir}"/${_gitname} "${srcdir}"/${_gitname}-build + + msg "Starting make..." + cd "${srcdir}"/${_gitname}-build + ./autogen.sh --prefix=/usr + make +} + +package() { + cd "${srcdir}"/${_gitname}-build + make DESTDIR="${pkgdir}" install + install -m755 -d "${pkgdir}"/usr/share/licenses/${pkgname} + install -m644 "${srcdir}"/${_gitname-build}/COPYING \ + "${pkgdir}"/usr/share/licenses/${pkgname}/ +} diff --git a/~coadde/libdrm-git/PKGBUILD b/~coadde/libdrm-git/PKGBUILD new file mode 100644 index 000000000..faced3da9 --- /dev/null +++ b/~coadde/libdrm-git/PKGBUILD @@ -0,0 +1,61 @@ +# Arch libdrm Maintainers: +# Jan de Groot +# Andreas Radke +# Maintainer (Parabola): Márcio Silva + +pkgname=libdrm-git +pkgver=20120611 +pkgrel=2 +pkgdesc="Userspace interface to kernel DRM services" +arch=('i686' 'x86_64' 'mips64el') +license=('MIT') +depends=('libpciaccess') +provides=('libdrm=2.4.35') +makedepends=('git' 'cairo' 'udev') +options=('!libtool') +url="http://dri.freedesktop.org/" +conflicts=('libdrm') + +_gitroot='git://git.freedesktop.org/git/mesa/drm' +_gitname='drm' + +build() { + + cd "$srcdir" + msg "Connecting to GIT server...." + + if [[ -d "$_gitname" ]]; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone "$_gitroot" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + + sed -i 's/PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs)//' configure.ac + + ./autogen.sh + ./configure --prefix=/usr \ + --enable-udev \ + --enable-intel \ + --enable-radeon \ + --enable-vmwgfx-experimental-api \ + --enable-nouveau + make V=1 +} + +check() { + cd "$srcdir/$_gitname-build" + make -k check +} + +package() { + cd "$srcdir/$_gitname-build" + make DESTDIR="$pkgdir" install +} -- cgit v1.2.3-54-g00ecf