2013-03-15 11:15:44 +00:00
|
|
|
# Template build file for 'mtd-utils'.
|
|
|
|
pkgname=mtd-utils
|
2014-08-11 05:29:33 +00:00
|
|
|
version=1.5.1
|
|
|
|
revision=1
|
2013-04-03 17:12:26 +00:00
|
|
|
makedepends="zlib-devel lzo-devel acl-devel libuuid-devel liblzma-devel"
|
2013-03-15 15:57:59 +00:00
|
|
|
short_desc="Memory Technology Device Utilities"
|
2014-06-08 10:15:44 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-03-15 11:15:44 +00:00
|
|
|
license="GPL-2"
|
|
|
|
homepage="http://www.linux-mtd.infradead.org/"
|
|
|
|
distfiles="ftp://ftp.infradead.org/pub/mtd-utils/$pkgname-$version.tar.bz2"
|
2014-08-11 05:29:33 +00:00
|
|
|
checksum=3b2ed1d05f73bd3789a85bebf5072874a72f8daf63552fd44a94e2a9acf1620b
|
2013-03-15 15:57:59 +00:00
|
|
|
|
|
|
|
do_build() {
|
2013-04-08 23:49:27 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-03-15 15:57:59 +00:00
|
|
|
make CROSS=${XBPS_CROSS_TRIPLET}- ${makejobs}
|
|
|
|
else
|
|
|
|
make ${makejobs}
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2013-04-08 23:49:27 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-03-15 15:57:59 +00:00
|
|
|
make CROSS=${XBPS_CROSS_TRIPLET}- DESTDIR=${DESTDIR} install
|
|
|
|
else
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
fi
|
|
|
|
}
|