summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ae5fc472ba266fb02b274e7c44967aaff6547fa (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
# Maintainer: Michaƫl Serpieri <mickybart@pygoscelis.org>

pkgname=hybris-usb
pkgver=0.1
pkgrel=4
pkgdesc="USB control for Android with hybris"
arch=('armv7h' 'aarch64')
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'
         '3d18718e97e5652af2464dfbef69eedc'
         '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/
}