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

pkgname=bbb-gadgets
pkgver=20130905
pkgrel=4
pkgdesc="Units to initialize USB gadgets for the BeagleBone Black"
arch=('any')
url="http://www.beagleboard.org/"
license=('MIT')
makedepends=('git')
depends=('bash' 'dhcp' 'devmem')
backup=('etc/dhcpd-usb0.conf')
source=('dhcpd-usb0.conf'
	'g-ether-load.sh'
	'LICENSE'
	'network-gadget-init.service'
	'storage-gadget-init.service')
sha256sums=('fbdd96a314618d71b42a703aa1ee6746c02619105417a7ffa44a5852d37502f9'
            '84183330e0e02ed9229bfa8d9803851d91b18f1aa07aeadeee189322268f640b'
            'a3cf78761a26fb2c850aec855708e83f808617c0c9c4620db58f06cbd2ce4d36'
            '56fb820f0fa844cf3e65f1adc88d60552ab7e602cd00cd5068bdc359d50042db'
            '49021ea919580689ffada058656a90b123446c5c1b1633c6bd2258eaa126fbac')

package() {
  install -D -m 0644 -t "$pkgdir"/usr/lib/systemd/system -- "$srcdir"/*.service
  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"
}