pkg-mmc-utils/PKGBUILD

41 lines
932 B
Bash
Raw Permalink Normal View History

2023-12-14 16:06:30 +08:00
# Maintainer: BigfootACA <bigfoot@classfun.cn>
# Maintainer: Leonidas P. <jpegxguy at outlook dot com>
# Contributor: Vincent Bernardoff <vb AT luminar.eu.org>
pkgname=mmc-utils
2024-09-19 19:44:58 +08:00
pkgver=r132.123fd8b
2024-09-19 19:50:52 +08:00
pkgrel=2
2023-12-14 16:06:30 +08:00
epoch=1
pkgdesc="Userspace tools for MMC/SD devices"
arch=('x86_64' 'i686' 'aarch64' 'armv7h' 'armv6h')
url="https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git"
license=('GPL')
2024-09-19 19:50:52 +08:00
makedepends=('git')
2023-12-14 16:06:30 +08:00
provides=("${pkgname}")
conflicts=("${pkgname}")
2024-04-30 03:02:40 +08:00
source=('git+https://gitea.classfun.cn:4443/korg/mmc-utils.git')
2023-12-14 16:06:30 +08:00
sha256sums=('SKIP')
pkgver() {
cd "${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
2024-04-30 03:14:14 +08:00
prepare() {
cd "${pkgname}"
sed -i 's,-Werror,,g' Makefile
2024-09-19 19:50:52 +08:00
sed -i '/C ?= 1/d' Makefile
2024-04-30 03:14:14 +08:00
}
2023-12-14 16:06:30 +08:00
build() {
cd "${pkgname}"
make
}
package() {
cd "${pkgname}"
2024-04-30 03:11:16 +08:00
mkdir -p "${pkgdir}/usr/share/man/man1"
mkdir -p "${pkgdir}/usr/bin"
2023-12-14 16:06:30 +08:00
make DESTDIR="${pkgdir}" prefix=/usr install
}