summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 985ef8d1f856a6b3030c46cf01b246bb9742b96f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Leonidas P. <jpegxguy at outlook dot com>
# Contributor: Vincent Bernardoff <vb AT luminar.eu.org>

_pkgname=mmc-utils
pkgname=${_pkgname}-git
pkgver=r139.67b9be6
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' 'sparse')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=(
	'git+https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git'
	'0001-makefile-gcc-include-fix.patch'
)
sha256sums=(
	'SKIP'
	'94f186b432710c456e1593642b9ea9dd6b27a6aa99076266b08d5a5950f89973'
)

prepare() {
        cd "${_pkgname}"
        git apply ../0001-makefile-gcc-include-fix.patch --ignore-whitespace
}

pkgver() {
	cd "${_pkgname}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${_pkgname}"
	make
}

package() {
	cd "${_pkgname}"
	mkdir -p "${pkgdir}/usr/share/man/man1/"
	make DESTDIR="${pkgdir}" prefix=/usr install
}