mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
33 lines
758 B
Bash
33 lines
758 B
Bash
# Maintainer: <nico.nell@gmail.com>
|
|
|
|
buildarch=20
|
|
|
|
_pkgbasename=bcm2835
|
|
pkgname=libbcm2835
|
|
pkgver=1.42
|
|
pkgrel=1
|
|
pkgdesc="C library for Broadcom BCM 2835 as used in Raspberry Pi"
|
|
url="http://www.airspayce.com/mikem/bcm2835/"
|
|
arch=('armv6h' 'armv7h')
|
|
license=('GPL')
|
|
options=('staticlibs')
|
|
source=(http://www.airspayce.com/mikem/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz bcm2835.patch)
|
|
md5sums=('3f60ac30ada6b8f7036243f13da441ba'
|
|
'f38a6a1b15598d03c6e882b08c082afa')
|
|
|
|
prepare() {
|
|
cd ${srcdir}/${_pkgbasename}-${pkgver}
|
|
patch -p1 -i "$srcdir/bcm2835.patch"
|
|
}
|
|
|
|
build() {
|
|
cd ${srcdir}/${_pkgbasename}-${pkgver}
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${_pkgbasename}-${pkgver}
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|
|
|