Skip to content

Instantly share code, notes, and snippets.

@Profpatsch
Last active December 13, 2015 21:18
Show Gist options
  • Save Profpatsch/4976612 to your computer and use it in GitHub Desktop.
Save Profpatsch/4976612 to your computer and use it in GitHub Desktop.
# Contributor: dawn <crackofdusk at gmail ... com>
# Update: Profpatsch [https://bbs.archlinux.org/misc.php?email=68112]
pkgname=performous-git
pkgver=20130217
pkgrel=1
pkgdesc="Karaoke game"
arch=('i686' 'x86_64')
url="http://performous.org"
license=('GPL')
depends=('boost' 'sdl' 'ffmpeg' 'cairo>=1.2' 'librsvg' 'glew' 'libxml++' 'portaudio' 'imagemagick')
optdepends=('portmidi: MIDI drum support' 'opencv: webcam support' 'ttf-ms-fonts: Microsoft core fonts')
makedepends=('cmake>=2.4' 'git' 'help2man')
provides=(performous)
conflicts=(performous)
_gitroot="https://github.com/performous/performous.git"
_gitname="performous"
build() {
cd "${srcdir}"
msg "Connecting to 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 "Starting make..."
rm -rf "${srcdir}/${_gitname}-build"
cp -r "${srcdir}/${_gitname}" "${startdir}/src/${_gitname}-build"
cd "${srcdir}/${_gitname}-build"
cmake -DCMAKE_INSTALL_PREFIX=/usr -DMagick++_LIBRARY=/usr/lib/libMagick++-Q16.so -DMagick_LIBRARY=/usr/lib/libMagickCore-Q16.so "${srcdir}/${_gitname}" || return 1
make || return 1
make DESTDIR="${pkgdir}/" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment