updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / chessx / PKGBUILD
blobe682467e3b3eb65e8022cd992f4003bea156d164
1 # Maintainer: archtux <antonio.arias99999@gmail.com>
3 pkgname=chessx
4 pkgver=0.8
5 pkgrel=1
6 pkgdesc="ChessX is a chess database. With ChessX you can operate on your collection of chess games in many ways: browse, edit, add, organize, analyze, etc."
7 arch=('i686' 'x86_64')
8 url="http://chessx.sourceforge.net/"
9 license=('GPL2')
10 depends=('intltool' 'qt')
11 source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
12 md5sums=('e527890968439f4de9e7b02315e124ab')
14 build() {
15   cd $srcdir/$pkgname-$pkgver/src
17    # Compilation
18    qmake
19    make
21    # Install
22    mkdir -p $pkgdir/opt/$pkgname
23    cd $srcdir/$pkgname-$pkgver
24    cp -R bin/ data/ i18n/  $pkgdir/opt/$pkgname
26    # Desktop icon
27    cd ./data/images
28    install -Dm644 chessx_48.tiff $pkgdir/usr/share/pixmaps/chessx_48.tiff
29    install -Dm644 $startdir/chessx.desktop $pkgdir/usr/share/applications/chessx.desktop