From 4c4ef7c0a3a748e6c0bbc488752410886cf0591e Mon Sep 17 00:00:00 2001 From: Márcio Silva Date: Mon, 11 Jun 2012 16:30:47 -0300 Subject: adding glproto-git package to ~coadde --- ~coadde/glproto-git/PKGBUILD | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 ~coadde/glproto-git/PKGBUILD (limited to '~coadde/glproto-git/PKGBUILD') 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}/ +} -- cgit v1.2.3