void-packages/srcpkgs/mtd-utils/template

38 lines
994 B
Text
Raw Normal View History

2013-03-15 11:15:44 +00:00
# Template build file for 'mtd-utils'.
pkgname=mtd-utils
version=1.5.0
revision=4
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"
2013-03-15 11:15:44 +00:00
maintainer="pancake <pancake@nopcode.org>"
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 15:57:59 +00:00
long_desc="
Utilities for manipulating memory technology devices, such as flash memory,
Disk-On-Chip, or ROM. Includes mkfs.jffs2, a tool to create JFFS2
(journaling flash file system) filesystems."
do_build() {
if [ "$CROSS_BUILD" ]; then
2013-03-15 15:57:59 +00:00
make CROSS=${XBPS_CROSS_TRIPLET}- ${makejobs}
else
make ${makejobs}
fi
}
do_install() {
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
}
mtd-utils_package() {
pkg_install() {
vmove usr
}
}