fix build

This commit is contained in:
BigfootACA 2024-04-30 03:14:14 +08:00
parent 4846ed4840
commit 32fa5b48bc
2 changed files with 9 additions and 4 deletions

View File

@ -1,7 +1,7 @@
pkgbase = mmc-utils pkgbase = mmc-utils
pkgdesc = Userspace tools for MMC/SD devices pkgdesc = Userspace tools for MMC/SD devices
pkgver = r113.9582278 pkgver = r128.f757f41
pkgrel = 3 pkgrel = 2
epoch = 1 epoch = 1
url = https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git url = https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git
arch = x86_64 arch = x86_64

View File

@ -3,8 +3,8 @@
# Contributor: Vincent Bernardoff <vb AT luminar.eu.org> # Contributor: Vincent Bernardoff <vb AT luminar.eu.org>
pkgname=mmc-utils pkgname=mmc-utils
pkgver=r113.9582278 pkgver=r128.f757f41
pkgrel=3 pkgrel=2
epoch=1 epoch=1
pkgdesc="Userspace tools for MMC/SD devices" pkgdesc="Userspace tools for MMC/SD devices"
arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'armv6h') arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'armv6h')
@ -21,6 +21,11 @@ pkgver() {
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
} }
prepare() {
cd "${pkgname}"
sed -i 's,-Werror,,g' Makefile
}
build() { build() {
cd "${pkgname}" cd "${pkgname}"
make make