PKGBUILDs/alarm/libbcm2835/PKGBUILD

29 lines
680 B
Bash
Raw Normal View History

# Maintainer: <nico.nell@gmail.com>
2015-12-24 10:38:37 +00:00
# Maintainer: <andrea@archlinux.org>
buildarch=28
_pkgbasename=bcm2835
pkgname=libbcm2835
pkgver=1.51
pkgrel=1
pkgdesc="C library for Broadcom BCM 2835 as used in Raspberry Pi"
2013-07-31 21:53:33 +00:00
url="http://www.airspayce.com/mikem/bcm2835/"
arch=('armv6h' 'armv7h' 'aarch64')
license=('GPL')
2015-09-23 10:10:38 +00:00
source=("http://www.airspayce.com/mikem/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz")
md5sums=('c36ad5d2f2305d8620cde0bc94fb57f7')
build() {
cd ${_pkgbasename}-${pkgver}
[[ $CARCH == "aarch64" ]] && CFLAGS+=" -fPIC" && CXXFLAGS+=" -fPIC"
./configure --prefix=/usr
make
}
package() {
cd ${_pkgbasename}-${pkgver}
make DESTDIR="${pkgdir}" install
}
2013-03-15 20:09:24 +00:00