PKGBUILDs/alarm/libbcm2835/PKGBUILD
2018-03-18 20:26:18 +00:00

28 lines
680 B
Bash

# Maintainer: <nico.nell@gmail.com>
# Maintainer: <andrea@archlinux.org>
buildarch=28
_pkgbasename=bcm2835
pkgname=libbcm2835
pkgver=1.55
pkgrel=1
pkgdesc="C library for Broadcom BCM 2835 as used in Raspberry Pi"
url="http://www.airspayce.com/mikem/bcm2835/"
arch=('armv6h' 'armv7h' 'aarch64')
license=('GPL')
source=("http://www.airspayce.com/mikem/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz")
md5sums=('3f87fd17024ad20ee19f82b559e4aa14')
build() {
cd ${_pkgbasename}-${pkgver}
[[ $CARCH == "aarch64" ]] && CFLAGS+=" -fPIC" && CXXFLAGS+=" -fPIC"
./configure --prefix=/usr
make
}
package() {
cd ${_pkgbasename}-${pkgver}
make DESTDIR="${pkgdir}" install
}