-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathPKGBUILD
51 lines (39 loc) · 1.26 KB
/
PKGBUILD
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: Michaël Serpieri <mickybart@pygoscelis.org>
pkgname=hybris-usb
pkgver=0.1
pkgrel=2
pkgdesc="USB control for Android with hybris"
arch=('armv7h')
url=""
license=('custom')
provides=()
depends=('systemd' 'dhcp')
options=()
source=('usb-tethering'
'usb-tethering.service'
'dhcpd.conf'
'dhcpd4.service-customexec.conf'
'tmpfiles.d.hybris-usb.conf')
md5sums=('2d270508c91e94997236e5dacd7bbc8d'
'7976b6c3d662802cc54e3458ec3b891e'
'8d25b1c3f1146635800db77f300b908c'
'0aff78dea49297c615946ee310c49a6b'
'91422a3f2a69c9800d25cd65358fe5df')
build() {
cd "${srcdir}"
}
package() {
cd "${srcdir}"
# usb tethering
install -d ${pkgdir}/usr/bin
install -m 755 usb-tethering ${pkgdir}/usr/bin/
install -d ${pkgdir}/usr/lib/systemd/system/
install -m 644 usb-tethering.service ${pkgdir}/usr/lib/systemd/system/
# dhcpd configuration
install -d ${pkgdir}/usr/lib/tmpfiles.d/
install -m 644 tmpfiles.d.hybris-usb.conf ${pkgdir}/usr/lib/tmpfiles.d/hybris-usb.conf
install -d ${pkgdir}/etc/systemd/system/dhcpd4.service.d/
install -m 644 dhcpd4.service-customexec.conf ${pkgdir}/etc/systemd/system/dhcpd4.service.d/customexec.conf
install -d ${pkgdir}/etc/hybris-usb/
install -m 644 dhcpd.conf ${pkgdir}/etc/hybris-usb/
}