blob: 7b8dd14d585b56904161e6030b796d7481f2842c (
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
|
_pkgbase=xmm7360-pci
pkgbase=xmm7360-pci-git
pkgname=(xmm7360-pci-dkms-git xmm7360-pci-utils-git)
pkgver=r229.cf6625a
pkgrel=1
pkgdesc='Driver for the Fibocom L850-GL / Intel XMM7360 LTE modem'
arch=('x86_64')
url="https://github.com/xmm7360/xmm7360-pci"
license=(BSD GPL)
makedepends=(python)
source=("git+$url"
"dkms.conf"
"xmm7360.service"
"nodbus-exit-code.patch"
"dns-priority.patch")
sha256sums=('SKIP'
'7471249a65fa1cb1c41a5a33c3a7d368d74f61ba91d4dc3e39be6afafc7ec6c0'
'2da4f2905390604b6dd0881cf874f2ee2c3898a24f86d380d1d403b2bb74c50d'
'b5e98c712fff07040426f632e45c594c288e6adb2ecda06b31e2387d6284fa82'
'8389a09554df2e87f3b9df921e018bcb46585bde31e47699999b8576510e19f0')
pkgver() {
cd ${_pkgbase}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd ${_pkgbase}
patch -p1 -i'' "${srcdir}"/nodbus-exit-code.patch
patch -p1 -i'' "${srcdir}"/dns-priority.patch
}
build() {
cd ${_pkgbase}
python -m compileall -o1 rpc
}
package_xmm7360-pci-dkms-git() {
pkgdesc+=" – module sources"
depends=(dkms)
provides=(XMM7360-PCI-MODULE)
cd ${_pkgbase}
install -Dm644 "${srcdir}"/dkms.conf xmm7360.c Makefile -t "${pkgdir}"/usr/src/${pkgbase}-${pkgver}/
}
package_xmm7360-pci-utils-git() {
pkgdesc+=" – utilities only"
depends=(XMM7360-PCI-MODULE dbus-python python-pyroute2 python-configargparse)
backup=(etc/xmm7360)
cd ${_pkgbase}
install -d "${pkgdir}"/usr/lib/${pkgbase}
cp --preserve=mode -R rpc "${pkgdir}"/usr/lib/${pkgbase}
install -Dm644 "$srcdir"/xmm7360.service -t "${pkgdir}"/usr/lib/systemd/system
install -Dm644 xmm7360.ini.sample "${pkgdir}"/etc/xmm7360
}
|