blob: 15acc5e5863e41a0d26b46bc9ac69916a328765d (
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
51
52
53
54
55
56
57
58
59
|
# Maintainer: Alejandro Valdes <alejandrovaldes@live.com>
_pkgbase=zombietrackergps
pkgname=zombietrackergps-git
pkgver=0.98.r3.g9812d72
pkgrel=2
_ldutils_projects_url="https://gitlab.com/ldutils-projects/"
pkgdesc="GPS track manager for Qt using KDE Marble maps. Currently supports GPX and TCX format import."
arch=('x86_64')
url="${_ldutils_projects_url}zombietrackergps"
license=('GPLv3')
depends=('qt5-base' 'marble-qt' 'qt5-charts' 'qt5-svg')
makedepends=('git' 'findutils')
source=("git+${url}.git"
"git+${_ldutils_projects_url}ldutils.git"
"archlinux.patch"
)
sha256sums=('SKIP'
'SKIP'
'8e3e6f27e65dff5f743e722e0a1e00c6f6d6a278cd77c9167ee4463a501a2ea9')
pkgver() {
cd ${_pkgbase}
git describe --long --tags | sed 's/^[v-]//;s/\([^-]*-g\)/r\1/;s/-/./g' | cut -c2-
}
prepare() {
#ldutils
cd $srcdir/ldutils
mkdir -p $srcdir/buildldutils
cd $srcdir/buildldutils
qmake -o Makefile $srcdir/ldutils/ldutils.pro -spec linux-g++
#zombietrackergps
cd $srcdir/$_pkgbase
patch --forward --strip=1 --input="${srcdir}/archlinux.patch"
mkdir -p $srcdir/build
cd $srcdir/build
qmake -o Makefile $srcdir/$_pkgbase/ZombieTrackerGPS.pro -spec linux-g++
}
build() {
cd $srcdir/buildldutils
#we need to build ldutils first
make install
cd $srcdir/build
make
}
package() {
cd build
mkdir -p ${pkgdir}/usr/share/applications
INSTALL_ROOT="${pkgdir}" make install
sed -i "s:Icon=.*:Icon=/usr/share/zombietrackergps/zombietrackergps.png:" ${pkgdir}/usr/share/applications/zombietrackergps.desktop
#for some reason make install creates some unnecessary folders
cd ${pkgdir}
ls | grep -v usr | xargs rm -r
}
|