diff options
Diffstat (limited to 'repo/hdparm')
-rw-r--r-- | repo/hdparm/hdparm.xibuild | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/repo/hdparm/hdparm.xibuild b/repo/hdparm/hdparm.xibuild new file mode 100644 index 0000000..12cff40 --- /dev/null +++ b/repo/hdparm/hdparm.xibuild @@ -0,0 +1,27 @@ +#!/bin/sh + +NAME="hdparm" +DESC="Utility for manipulating IDE device parameters" + +MAKEDEPS=" linux-headers" + +PKG_VER=9.63 +SOURCE="https://downloads.sourceforge.net/sourceforge/hdparm/hdparm-$PKG_VER.tar.gz" + +prepare() { + apply_patches + sed -i '/^LDFLAGS/d' "$BUILD_ROOT"/Makefile +} + +build() { + export CFLAGS="$CFLAGS -D_GNU_SOURCE" + make +} + +package() { + make DESTDIR="$PKG_DEST" install + install -D -m755 contrib/idectl "$PKG_DEST"/sbin + install -D -m755 contrib/ultrabayd "$PKG_DEST"/sbin + install -D -m644 LICENSE.TXT "$PKG_DEST"/usr/share/licenses/hdparm/LICENSE.TXT +} + |