void-packages/srcpkgs/mtd-utils/template
2015-08-04 08:30:27 +02:00

26 lines
769 B
Bash

# Template build file for 'mtd-utils'.
pkgname=mtd-utils
version=1.5.2
revision=1
makedepends="zlib-devel lzo-devel acl-devel libuuid-devel liblzma-devel"
short_desc="Memory Technology Device Utilities"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://www.linux-mtd.infradead.org/"
distfiles="ftp://ftp.infradead.org/pub/mtd-utils/$pkgname-$version.tar.bz2"
checksum=5db57389280a3abaec5dd23af2590988b70f213fa3929c12a2642c8f9a86f400
do_build() {
if [ "$CROSS_BUILD" ]; then
make CROSS=${XBPS_CROSS_TRIPLET}- ${makejobs}
else
make ${makejobs}
fi
}
do_install() {
if [ "$CROSS_BUILD" ]; then
make CROSS=${XBPS_CROSS_TRIPLET}- DESTDIR=${DESTDIR} SBINDIR=/usr/bin install
else
make DESTDIR=${DESTDIR} SBINDIR=/usr/bin install
fi
}