summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed92b9813475a4b225d4e58062b19e51045c2a0f (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
# Maintainer: Antonio Orefice <kokoko3k@gmail.com>

pkgname=net-names-crc16
pkgver=1.0
pkgrel=1
pkgdesc='Udev rule and helper script to rename interfaces using a crc16 calculation based on the mac address'
arch=('any')
url="http://reactivated.net/writing_udev_rules.html"
license=('GPL')
provides=("${pkgname}")
conflicts=("${pkgname}")
depends=('bash' 'udev')
source=(10-net-names-crc16.rules crc16.sh)

sha256sums=('efc5582c92ab56dc743c63107cb39b0fb91333c2b1777fc8a002aa25a0aa4e14'
            '1760f03a70d16f0de9187e930aa1143f0de1425bb8cb53f90973f0f12bbe94a8')

package() {
  install -Dm644 10-net-names-crc16.rules ${pkgdir}/etc/udev/rules.d/10-net-names-crc16.rules
  install -Dm755 crc16.sh ${pkgdir}/usr/bin/crc16.sh
}

install=${pkgname}.install