updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / openpref / PKGBUILD
blob2ba3caacd0007a0e63425e585eaf88803601e681
1 pkgname=openpref
2 pkgver=0.1.3
3 pkgrel=1
4 pkgdesc="Preferans -- quite old European card game mostly popular in Russia"
5 arch=('i686' 'x86_64')
6 url="http://openpref.sourceforge.net/"
7 license=('GPL')
8 depends=('qt' )
9 makedepends=('cmake>=2.4.8')
10 source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
11 md5sums=('7b51607c2145f0063f405e159c6410bf')
13 build() {
14   cd "${srcdir}/${pkgname}-${pkgver}"
15   mkdir build
16   # quick and dirty patch
17   cp CMakeLists.txt CMakeLists.txt.orig
18   sed 's/games/bin/g' < CMakeLists.txt.orig > CMakeLists.txt
19   # 
20   cd build
21   cmake -D CMAKE_INSTALL_PREFIX="/usr" .. 
22   make || return 1
23   make DESTDIR="${pkgdir}" install