summaryrefslogtreecommitdiff
path: root/pcr/bbb-gadgets/PKGBUILD
blob: 4affed0789986af9694b5815b063bbf82d26f3b3 (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
# Contributor (Arch)     : Brice Waegeneire  < brice dot wge at gmail dot com >
# Maintainer  (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp> 

pkgname=bbb-gadgets
pkgver=20130905
pkgrel=3
pkgdesc="Units to initialize usb gadgets for the BeagleBone Black"
arch=('any')
url="http://www.beagleboard.org/"
license=('MIT')
makedepends=('git')
depends=('bash' 'systemd' 'dhcp' 'devmem')
backup=('etc/dhcpd-usb0.conf')
source=('dhcpd-usb0.conf'
	'g-ether-load.sh'
	'LICENSE'
	'network-gadget-init.service'
	'storage-gadget-init.service')       

package() {
  install -d $pkgdir/usr/lib/systemd/system
  install -m 0644 $srcdir/*.service $pkgdir/usr/lib/systemd/system
  
  install -D -m 0644 $srcdir/dhcpd-usb0.conf $pkgdir/etc/dhcpd-usb0.conf
  
  install -D -m 0755 $srcdir/g-ether-load.sh $pkgdir/usr/bin/g-ether-load.sh

  install -D -m 0644 $srcdir/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}