diff options
author | 7Ji | 2023-07-28 16:00:09 +0800 |
---|---|---|
committer | 7Ji | 2023-07-28 16:00:09 +0800 |
commit | 92992e7bdbdf218253507f5a03519596bb207b32 (patch) | |
tree | 967f4add1797e2a2201fbbc32a7ac368ba5d7b0c | |
parent | 4cef59d26a20c7e958c1da3c96a25aa85339e9f1 (diff) | |
download | aur-92992e7bdbdf218253507f5a03519596bb207b32.tar.gz |
update to 20230725, switch to .git source
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 15 insertions, 15 deletions
@@ -1,16 +1,16 @@ pkgbase = linux-firmware-amlogic-ophub pkgdesc = Firmware files for Linux - for AArch64 Amlogic platform, complete set, collected by ophub - pkgver = 20230405 + pkgver = 20230725.c1f334c pkgrel = 1 url = https://github.com/ophub/firmware arch = aarch64 license = GPL2 license = GPL3 license = custom - provides = linux-firmware=20230405 + provides = linux-firmware=20230725.c1f334c conflicts = linux-firmware options = !strip - source = firmware-0b32ed16bfd45f979cd1e20c1efb1de6abbb7d64.tar.gz::https://github.com/ophub/firmware/archive/0b32ed16bfd45f979cd1e20c1efb1de6abbb7d64.tar.gz - sha256sums = f1c3cb68df79c1de943cf4bcd88b9634ff8ced82265ae021ee87dbf0e6134881 + source = git+https://github.com/ophub/firmware.git + sha256sums = SKIP pkgname = linux-firmware-amlogic-ophub @@ -1,9 +1,7 @@ # Maintainer: 7Ji <pugokughin@gmail.com> -_commit='0b32ed16bfd45f979cd1e20c1efb1de6abbb7d64' - pkgname=linux-firmware-amlogic-ophub -pkgver=20230405 +pkgver=20230725.c1f334c pkgrel=1 pkgdesc="Firmware files for Linux - for AArch64 Amlogic platform, complete set, collected by ophub" arch=('aarch64') @@ -12,17 +10,19 @@ license=('GPL2' 'GPL3' 'custom') conflicts=('linux-firmware') provides=("linux-firmware=${pkgver}") options=(!strip) -source=( - "firmware-${_commit}.tar.gz::${url}/archive/${_commit}.tar.gz" -) +source=("git+${url}.git") +sha256sums=('SKIP') + +pkgver() { + cd firmware -sha256sums=( - 'f1c3cb68df79c1de943cf4bcd88b9634ff8ced82265ae021ee87dbf0e6134881' -) + # Commit date + short rev + echo $(TZ=UTC git show -s --pretty=%cd --date=format-local:%Y%m%d HEAD).$(git rev-parse --short HEAD) +} package() { install -d -m 755 "${pkgdir}"/usr/lib - cp -rva "${srcdir}/firmware-${_commit}/firmware" "${pkgdir}/usr/lib/" + cp -rva "${srcdir}/firmware/firmware" "${pkgdir}/usr/lib/" # Optimize wifi/bluetooth module, adapted from https://github.com/ophub/amlogic-s9xxx-armbian/blob/d324aad263106aa218f9ada5c01b1ca6f285c121/rebuild#L803 pushd "${pkgdir}/usr/lib/firmware/brcm" @@ -45,4 +45,4 @@ package() { sed -e "s/macaddr=.*/macaddr=${random_macaddr}:07/" "brcmfmac4354-sdio.txt" >"brcmfmac4354-sdio.amlogic,sm1.txt" popd -}
\ No newline at end of file +} |