PKGBUILDs/aur/devmem/PKGBUILD

31 lines
647 B
Bash
Raw Normal View History

2012-03-22 13:06:28 +00:00
# Contributor: Alexander Lam <lambchop468 *AT* gmail.com>
plugrel=1
pkgname=devmem
pkgver=2
pkgrel=1
pkgdesc="A small utility to access /dev/mem and read/write to any memory location"
arch=('any')
url="http://free-electrons.com/pub/mirror/devmem2.c"
license=('GPL2')
groups=()
depends=()
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=("http://free-electrons.com/pub/mirror/${pkgname}${pkgver}.c")
noextract=()
md5sums=('e23f236e94be4c429aa1ceac0f01544b')
build() {
cd "$srcdir/"
gcc devmem2.c -o devmem2
install -D -m755 devmem2 ${pkgdir}/usr/sbin/devmem2
}
# vim:set ts=2 sw=2 et: