summaryrefslogtreecommitdiff
path: root/repo/hdparm/hdparm.xibuild
blob: f831e15bf94bda2093f03b78813e76f6f10e5517 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

NAME="hdparm"
DESC="Utility for manipulating IDE device parameters"

MAKEDEPS=" linux-headers"

PKG_VER=9.65
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
}