blob: da6946c8b68ef9df647022bfeeff4b25f83188b9 (
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
42
43
44
45
46
47
48
49
50
|
# Maintainer: Samuel Mesa <samuelmesa@linuxmail.org>
_pkgname=e-foto
pkgname=$_pkgname-svn
pkgrel=1
pkgver=434
pkgdesc="A free GNU/GPL educational digital photogrammetric workstation"
arch=(i686 x86_64)
url=http://www.efoto.eng.uerj.br
license=(GPL2)
depends=('shapelib' 'qt4')
makedepends=('svn' 'cmake')
optdepends=()
options=()
conflicts=('e-foto')
provides=('e-foto')
source=($pkgname::svn+https://svn.code.sf.net/p/${_pkgname}/code/trunk)
md5sums=('SKIP')
pkgver() {
cd ${pkgname}
svnversion | egrep -o "[0-9]+"
}
build() {
cd ${pkgname}
qmake-qt4
make
}
package() {
cd ${pkgname}
make DESTDIR="$pkgdir" install || return 1
mkdir -p ${pkgdir}/usr/{bin,share/{applications,pixmaps}}
install -m 755 -p "./build/bin/e-foto" "${pkgdir}/usr/bin/e-foto"
install -D -m644 efoto.ico "${pkgdir}/usr/share/pixmaps/efoto.ico"
echo "[Desktop Entry]
Name=${_pkgname}
Comment=A free GNU/GPL educational digital photogrammetric workstation
Exec=/usr/bin/e-foto
Icon=/usr/share/pixmaps/efoto.ico
Terminal=false
Type=Application
X-MultipleArgs=false
Categories=GTK;Science;" > "$pkgdir/usr/share/applications/${_pkgname}.desktop"
}
|