summaryrefslogtreecommitdiff
path: root/community/xplanet/PKGBUILD
blob: 99fac12b6fe905ed85ff8fcb9950d782f6e5ac70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# $Id: PKGBUILD 8986 2010-01-23 01:24:16Z foutrelis $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: dorphell <dorphell@archlinux.org>
# Committer: Judd Vinet <jvinet@zeroflux.org>

pkgname=xplanet
pkgver=1.2.1
pkgrel=3
pkgdesc="An Xearth wannabe"
arch=(i686 x86_64 'mips64el')
url="http://xplanet.sourceforge.net/"
license=('GPL')
depends=('pango' 'libungif' 'libtiff' 'perl' 'libxss')
source=(http://kent.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('5dca0369ca64fa3c006b616b72b5e1cf')

build() {
  cd $startdir/src/$pkgname-$pkgver

  sed -i '1,2i#include <stdio.h>' src/Satellite.cpp
  sed -i '1,2i#include <stdio.h>' src/Separation.cpp

  ./configure --prefix=/usr --with-freetype
  make || return 1
  make prefix=$startdir/pkg/usr install
}