# Maintainer: Leonidas P. # Contributor: Vincent Bernardoff _pkgname=mmc-utils pkgname=${_pkgname}-git pkgver=r109.145c74a pkgrel=1 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}") source=( 'git+https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git' 'append-CFLAGS.patch' ) sha256sums=( 'SKIP' '0ec2d5ed066dd0797b9d32fadea8c64e4fe509f3585cdbeeb3640c3a1cda9dfc' ) pkgver() { cd "${_pkgname}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { cd "${_pkgname}" patch --forward --strip=1 --input="${srcdir}/append-CFLAGS.patch" } build() { cd "${_pkgname}" make } package() { cd "${_pkgname}" make DESTDIR="${pkgdir}" prefix=/usr install install -Dm644 man/mmc.1 "${pkgdir}/usr/share/man/man1/mmc.1" }