updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libumd / PKGBUILD
blob0fec57d85256213caec4ff9eb93a58dc68a53aa5
1 # Maintainer: Alf <naihe2010@126.com>
3 pkgname=libumd
4 pkgver=20111223
5 pkgrel=1
6 pkgdesc='A UMD parser and render C library'
7 arch=('i686' 'x86_64')
8 url='http://naihe2010.github.com/libumd/index.html'
9 license=('GPLv2')
10 depends=('')
11 makedepends=('git' 'cmake' 'doxygen')
12 options=('!buildflags')
13 _gitroot='http://github.com/naihe2010/libumd.git'
14 _gitname='libumd'
15 md5sums=()
17 build() {
18   cd "$srcdir"
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22   else
23     git clone $_gitroot
24     cd $_gitname
25   fi
27   rm -rf "$srcdir/$_gitname-build"
28   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
29   cd "$srcdir/$_gitname-build"
31   mkdir build && cd build
32   cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIBUMD_WITH_INSTALL=ON ..
33   make -j1
36 package() {
37   cd "$srcdir/$_gitname-build/build"
38   make DESTDIR="$pkgdir/" install
40   make clean