Skip to content

Instantly share code, notes, and snippets.

@ElementW
Created May 25, 2017 01:58
Show Gist options
  • Save ElementW/ec7de8599218cd8345a27423962352b2 to your computer and use it in GitHub Desktop.
Save ElementW/ec7de8599218cd8345a27423962352b2 to your computer and use it in GitHub Desktop.
glPortal debug AUR PKGBUILD
# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Maintainer: Geert Custers <[email protected]>
# Contributor: Jakob Gahde <[email protected]>
_pkgname=glportal
pkgname=${_pkgname}-git
pkgver=0.4.0.188.g857969c
pkgrel=1
epoch=1
pkgdesc="OpenGL puzzle game inspired by portal."
arch=('i686' 'x86_64')
url="http://glportal.de/"
license=('custom')
depends=('assimp' 'sdl2_mixer' 'tinyxml2' 'libepoxy' 'bullet' 'freeimage')
makedepends=('git' 'cmake' 'unittestpp')
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
source=("git://github.com/${_pkgname}/${_pkgname}.git")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
echo $(git describe --always | sed 's/-/./g')
}
prepare() {
cd "${srcdir}/${_pkgname}"
git submodule update --init --recursive
}
build() {
cd "${srcdir}/${_pkgname}"
[[ -d build ]] || mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr ..
}
package() {
cd $srcdir/$_pkgname/build
make install DESTDIR=$pkgdir
install -Dm644 $srcdir/$_pkgname/LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment