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