summaryrefslogtreecommitdiff
path: root/pcr/devmem/PKGBUILD
blob: ab664447e581c4f79231d4d089df99e3b1a7449e (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
# Contributor (Arch)     : Brice Waegeneire < brice dot wge at gmail dot com >
# Contributor (Arch)     : Alexander Lam <lambchop468 *AT* gmail.com>
# Maintainer  (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>

pkgname=devmem
pkgver=2
pkgrel=2
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')
source=("http://free-electrons.com/pub/mirror/${pkgname}${pkgver}.c")


build() {
  cd "$srcdir/"
  gcc devmem2.c -o devmem2
}

package() {
  install -D -m755 ${srcdir}/devmem2 ${pkgdir}/usr/bin/devmem2
}
  
# vim:set ts=2 sw=2 et: