27 lines
733 B
Bash
27 lines
733 B
Bash
# Template build file for 'mtd-utils'.
|
|
pkgname=mtd-utils
|
|
version=1.5.1
|
|
revision=1
|
|
makedepends="zlib-devel lzo-devel acl-devel libuuid-devel liblzma-devel"
|
|
short_desc="Memory Technology Device Utilities"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="GPL-2"
|
|
homepage="http://www.linux-mtd.infradead.org/"
|
|
distfiles="ftp://ftp.infradead.org/pub/mtd-utils/$pkgname-$version.tar.bz2"
|
|
checksum=3b2ed1d05f73bd3789a85bebf5072874a72f8daf63552fd44a94e2a9acf1620b
|
|
|
|
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} install
|
|
else
|
|
make DESTDIR=${DESTDIR} install
|
|
fi
|
|
}
|