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
42
43
44
45
46
47
48
49
50
51
52
53
| # Maintainer: Isaac Dupree <id@isaac.cedarswampstudios.org>
# Contributor: yannsen <ynnsen@gmail.com>
pkgname=emerillon-git
pkgver=20120604
pkgrel=1
pkgdesc="OpenStreetMap viewer"
arch=("i686" "x86_64")
url="http://projects.gnome.org/emerillon/"
license=("GPL" "LGPL")
depends=("geoclue" "libchamplain" "rest" "libpeas" "dconf" "desktop-file-utils")
makedepends=("git" "gnome-common" "vala" "gtk-doc" "intltool")
provides=("emerillon")
conflicts=("emerillon")
options=("!libtool")
install="${pkgname}.install"
source=("${pkgname}.install")
sha256sums=("cc4e0885de48bd45e509fa7deb7ebfce312b8468913540a5f14e96c245567864")
_gitroot="git://git.gnome.org/emerillon"
_gitname="emerillon"
build() {
local _gitdir="${srcdir}/${_gitname}"
msg "Connecting to GIT server...."
if [[ -d "$_gitdir" ]]; then
cd "$_gitdir" && git pull origin
msg "The local files are updated."
else
git clone "$_gitroot" "$_gitdir"
fi
msg "GIT checkout done or server timeout"
msg "Starting build..."
cd "$_gitdir"
git clean -dfx
git reset --hard HEAD
# "--disable-schemas-compile" unnecessary: configure does not run
# "glib-compile-schemas" if DESTDIR is given during "make install"
./autogen.sh --prefix=/usr
make
}
package() {
local _gitdir="${srcdir}/${_gitname}"
cd "${_gitdir}"
make DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:
|