updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / fatelf-utils / PKGBUILD
blob6aae6b7d59dc1140a39ddf4cf5fda40b6fa0c4df
1 # Archlive <http://archlive-pkg.googlecode.com>
3 pkgname=fatelf-utils
4 pkgver=106
5 pkgrel=1
6 pkgdesc="Utils for fatelf -- Universal Binaries for Linux"
7 arch=('i686' 'x86_64')
8 url="http://www.icculus.org/fatelf/"
9 license=('GPL2')
10 depends=()
11 makedepends=('cmake')
12 conflicts=()
13 backup=()
14 source=()
15 optdepends=()
17 _hgroot="http://hg.icculus.org/icculus"
18 _hgrepo="fatelf"
21 build() {
23 #  cd $startdir
25 #  if [ -d ${_hgrepo} ]; then
26 #      cd ${_hgrepo} && hg pull -u -r ${pkgver}
27 #  else
28 #      hg clone "${_hgroot}" "${_hgrepo}" || return 1
29 #  fi
30   
31   [ -d $srcdir/build ] && rm -rf $srcdir/build
32   mkdir -p $srcdir/build
33   cd $srcdir/build
35   msg2 "Start to build..."
36   cmake ../${_hgrepo}
37   make
38   sed -i "s|/usr/local|/usr|g" cmake_install.cmake
39   make DESTDIR=${pkgdir} install
41   # Install the docs
42   install -d $pkgdir/usr/share/doc/fatelf
43   install $srcdir/${_hgrepo}/docs/*.txt $pkgdir/usr/share/doc/fatelf/