serial2mac/PKGBUILD

24 lines
668 B
Bash

# Maintainer: Baltazár Radics <baltazar.radics@gmail.com>
pkgname=serial2mac
pkgver=1.0
pkgrel=1
pkgdesc='Sets mac address based on cpu serial number'
arch=(armv7h)
url=
license=(MIT)
depends=(glibc)
source=(Makefile $pkgname.c $pkgname.rules)
noextract=()
sha256sums=('b65d82482f4e2a5af2da3cece9a034e9a19c07a92149c774c2da75d07340f086'
'73acb463a7e9b8bf432b92d184194bcb086dcabbbf85dc9614c8dcf61a2a55b3'
'8332f739d99ec9e262be1a24ae1a3d708ef9214b9c29334cea36d1202d96d758')
build() {
make
}
package() {
install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"
install -Dm644 $pkgname.rules "$pkgdir/usr/lib/udev/rules.d/75-$pkgname.rules"
}