pkg-mmc-utils/PKGBUILD

40 lines
903 B
Bash
Raw 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-04-30 03:14:14 +08:00
pkgver=r128.f757f41
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')
makedepends=('git')
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
}
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
}