blob: e4df3f8b0341263c87b886a7c0f496c205736314 (
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
|
# Contributor: Andreas Boehler <andy dot boehler at gmx dot at>
# Maintainer: Olivier Mehani <shtrom-aur@ssji.net>
# Contributor: Frederik "Freso" S. Olesen <freso.dk@gmail.com>
_gitname=mbm-gpsd
_ghuser=pl4nkton
pkgname="${_gitname}-${_ghuser}-git"
pkgver=r53.b3dee82
pkgrel=2
pkgdesc="GPS support files for Ericsson F3507g that provide an easy interface to gpsd (${_ghuser} fork with build fixes)"
arch=('i686' 'x86_64')
url="https://github.com/pl4nkton/mbm-gpsd"
license=('GPL')
depends=('networkmanager' 'network-manager-applet' 'intltool' 'gtk-doc' 'libnl1')
makedepends=('git')
provides=("${_gitname}")
conflicts=("${_gitname}")
source=(
"git+https://github.com/${_ghuser}/${_gitname}.git/"
mbm-gpsd.service
"0001-mbm_powerstate-protect-from-empty-1.patch"
)
pkgver() {
cd "${srcdir}/${_gitname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}/${_gitname}"
patch -p1 < "${srcdir}/0001-mbm_powerstate-protect-from-empty-1.patch"
}
build() {
cd "${srcdir}/${_gitname}"
unset CFLAGS
unset CXXFLAGS
./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make CFLAGS="-Wno-error"
}
package() {
cd "${srcdir}/${_gitname}"
make DESTDIR="${pkgdir}" install
mkdir -p "${pkgdir}/usr/lib/udev/rules.d"
mv "${pkgdir}/etc/udev/rules.d/"* "${pkgdir}/usr/lib/udev/rules.d"
rmdir "${pkgdir}/etc/udev/rules.d"
mkdir -p "${pkgdir}/usr/lib/systemd/system/"
cp "${srcdir}/mbm-gpsd.service" "${pkgdir}/usr/lib/systemd/system/"
mv "${pkgdir}/var/run" "${pkgdir}/run"
mv "${pkgdir}/usr/sbin"/* "${pkgdir}/usr/bin/"
rmdir "${pkgdir}/var" "${pkgdir}/usr/sbin/"
}
md5sums=('SKIP'
'c436e8bcf6b459f8f939e434aed0b9d4'
'abfadb4be603bbcede163f95419a22d1')
|