linux-libre-firmware/PKGBUILD

44 lines
1.4 KiB
Bash
Raw Normal View History

2018-03-05 22:30:47 +00:00
# Contributor: André Silva <emulatorman@parabola.nu>
2015-06-08 19:26:33 +00:00
# Contributor: Márcio Silva <coadde@parabola.nu>
2018-10-29 16:58:58 +00:00
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
2021-03-04 01:02:39 +00:00
# Contributor: Bastian Germann
2015-06-08 19:26:33 +00:00
pkgname=linux-libre-firmware
2021-03-04 00:54:04 +00:00
pkgver=1.4
2018-05-09 10:18:52 +00:00
pkgrel=1
2015-06-08 19:26:33 +00:00
pkgdesc='Firmware files for Linux-libre'
arch=('any')
2017-11-16 10:23:40 +00:00
url='https://jxself.org/firmware'
2015-06-08 19:26:33 +00:00
license=('GPL2')
2021-03-04 00:54:04 +00:00
makedepends=('arm-none-eabi-gcc' 'avr-libc' 'cmake' 'dfu-util' 'wget')
2018-03-10 22:06:00 +00:00
options=('!buildflags')
2015-06-08 19:26:33 +00:00
provides=('linux-firmware')
conflicts=('linux-firmware'
2018-03-06 07:59:42 +00:00
'linux-firmware-git')
2017-11-16 10:23:40 +00:00
source=("https://jxself.org/firmware/${pkgname}-${pkgver}.tar.lz"
"https://jxself.org/firmware/${pkgname}-${pkgver}.tar.lz.asc")
2021-03-04 00:54:04 +00:00
sha512sums=('3b4c8afb63c55f05df0b2686459c6bb2c0cb56db8384d5527506ff4a14b8de80e1a3037a9b57cccccd6953d869c6a71a6500c4c7b735253ea0b57c79854d9457'
2015-06-08 19:26:33 +00:00
'SKIP')
2018-03-10 22:06:00 +00:00
validpgpkeys=('F611A908FFA165C699584ED49D0DB31B545A3198')
2015-06-08 19:26:33 +00:00
2018-03-05 22:30:47 +00:00
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
}
2017-11-16 10:23:40 +00:00
build() {
cd "${pkgname}-${pkgver}/src"
2018-03-10 22:06:00 +00:00
make
2017-11-16 10:23:40 +00:00
}
2015-06-08 19:26:33 +00:00
2017-11-16 10:23:40 +00:00
package() {
cd "${pkgname}-${pkgver}/src"
2015-06-08 19:26:33 +00:00
install -d -m755 "$pkgdir"/usr/lib/firmware
2017-11-16 10:23:40 +00:00
make prefix="${pkgdir}/usr/lib/firmware" install
install -Dm644 WHENCE "${pkgdir}/usr/share/licenses/${pkgname}"
2015-06-08 19:26:33 +00:00
}