43 lines
1.4 KiB
Bash
43 lines
1.4 KiB
Bash
# Contributor: André Silva <emulatorman@parabola.nu>
|
|
# Contributor: Márcio Silva <coadde@parabola.nu>
|
|
# Contributor (Parabola): Luke Shumaker <lukeshu@sbcglobal.net>
|
|
|
|
pkgname=linux-libre-firmware
|
|
pkgver=1.2.1
|
|
pkgrel=1
|
|
pkgdesc='Firmware files for Linux-libre'
|
|
arch=('any')
|
|
url='https://jxself.org/firmware'
|
|
license=('GPL2')
|
|
makedepends=('arm-none-eabi-gcc')
|
|
options=('!buildflags')
|
|
provides=('linux-firmware')
|
|
conflicts=('linux-firmware'
|
|
'linux-firmware-git')
|
|
source=("https://jxself.org/firmware/${pkgname}-${pkgver}.tar.lz"
|
|
"https://jxself.org/firmware/${pkgname}-${pkgver}.tar.lz.asc")
|
|
sha512sums=('dc4f2e931b4dde217f2e3430e7a0c1a5f42f0844087bf9a771c7e40dbdd8050205d7a80495bd130f87a02a823db7514241d68bfded19548132b3620d4c7e630a'
|
|
'SKIP')
|
|
validpgpkeys=('F611A908FFA165C699584ED49D0DB31B545A3198')
|
|
|
|
prepare() {
|
|
# ln the arm-none-eabi- prefixed tools for av7110
|
|
mkdir -p bin
|
|
ln -sf /usr/bin/arm-none-eabi-gcc bin/arm-linux-gnueabi-gcc
|
|
ln -sf /usr/bin/arm-none-eabi-ld bin/arm-linux-gnueabi-ld
|
|
ln -sf /usr/bin/arm-none-eabi-objcopy bin/arm-linux-gnueabi-objcopy
|
|
export PATH=$PATH:$(pwd)/bin
|
|
}
|
|
|
|
build() {
|
|
cd "${pkgname}-${pkgver}/src"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${pkgname}-${pkgver}/src"
|
|
install -d -m755 "$pkgdir"/usr/lib/firmware
|
|
make prefix="${pkgdir}/usr/lib/firmware" install
|
|
install -Dm644 WHENCE "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
}
|