summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bf2275931efbcb04665e6568e5d670c05b25b52c (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Gaetan Bisson <bisson@archlinux.org
# Contributor: Gilles CHAUVIN <gcnweb at gmail dot com>

pkgname=xplanet-svn
_pkgname=xplanet
pkgver=20191013.220
pkgrel=1
pkgdesc='Renders an image of the earth into the X root window'
url='http://xplanet.sourceforge.net/'
arch=('i686' 'x86_64' 'armv7h')
license=('GPL2')
makedepends=('subversion')
depends=('pango' 'giflib' 'libtiff' 'libxss')
source=("${_pkgname}::svn://svn.code.sf.net/p/xplanet/code/trunk")
sha256sums=('SKIP')

provides=("${_pkgname}")
conflicts=("${_pkgname}")

pkgver() {
        cd "${srcdir}/${_pkgname}"
        svn info | awk '/Revision/{r=$2}/Date/{gsub(/-/,"");d=$4}END{print d"."r}'
}

prepare() {
	cd "${srcdir}/${_pkgname}"
	sed 's: -I`$FREETYPE_CONFIG --prefix`/include::g' -i acinclude.m4
	aclocal && autoconf && automake --add-missing
}

build() {
	cd "${srcdir}/${_pkgname}"
	export FREETYPE_CONFIG="/usr/bin/pkg-config freetype2"
	./configure --prefix=/usr
	make
}

package() {
	cd "${srcdir}/${_pkgname}"
	make prefix="${pkgdir}"/usr install
}