updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lxdream-hg / PKGBUILD
blob13ff271e89974cd337a9aca85346748be3ea1da7
1 # Contributor: [vEX] <niechift.dot.vex.at.gmail.dot.com>
2 pkgname=lxdream-hg
3 pkgver=1198
4 pkgrel=1
5 pkgdesc="A linux-based emulator for the Sega Dreamcast system."
6 arch=('i686' 'x86_64')
7 url="http://www.lxdream.org/"
8 license=('GPL')
9 depends=('gtk2' 'libgl' 'libisofs' 'sdl')
10 makedepends=('mercurial')
11 optdepends=('lirc-utils')
12 conflicts=('lxdream')
13 install='lxdream.install'
14 md5sums=() #generate with 'makepkg -g'
16 _hgroot=http://www.lxdream.org/hg/lxdream
17 _hgrepo=default
19 build() {
20   cd "${srcdir}"
21   msg "Connecting to Mercurial server...."
23   if [[ -d "${_hgrepo}" ]]; then
24     cd "${_hgrepo}"
25     hg pull -u
26     msg "The local files are updated."
27   else
28     hg clone "${_hgroot}" "${_hgrepo}"
29   fi
31   msg "Mercurial checkout done or server timeout"
32   msg "Starting build..."
34   rm -rf "${srcdir}/${_hgrepo}-build"
35   cp -r "${srcdir}/${_hgrepo}" "${srcdir}/${_hgrepo}-build"
36   cd "${srcdir}/${_hgrepo}-build"
38   #
39   # BUILD HERE
40   #
41   export LIBS="-lm"
42   ./configure --prefix=/usr \
43     --sysconfdir=/etc \
44     --with-gtk \
45     --with-sdl \
46     --with-osmeta \
47     --without-esd \
48     --without-pulse
49   make
52 package() {
53   cd "${srcdir}/${_hgrepo}-build"
54   make DESTDIR="${pkgdir}/" install
57 # vim:set ts=2 sw=2 et: