aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hdparm/APKBUILD
blob: 99c9ed8f8380415cb59552d438e06da6707ecdc3 (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
28
29
30
31
32
33
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hdparm
pkgver=9.32
pkgrel=0
pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
url="http://sourceforge.net/projects/hdparm/"
license="BSD"
depends=
makedepends=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
	hdparm.initd
	hdparm.confd"

_builddir="$srcdir"/$pkgname-$pkgver
build() { 
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir"/usr "$pkgdir"/sbin
	make DESTDIR="$pkgdir" install || return 1
	install -m755 contrib/idectl "$pkgdir"/sbin || return 1
	install -m755 contrib/ultrabayd "$pkgdir"/sbin || return 1
	install -Dm755 "$srcdir"/hdparm.initd "$pkgdir"/etc/init.d/hdparm
	install -Dm644 "$srcdir"/hdparm.confd "$pkgdir"/etc/conf.d/hdparm
	install -D -m 644 LICENSE.TXT $pkgdir/usr/share/licenses/hdparm/LICENSE.TXT || return 1
}
md5sums="9819ba0c537003815bede9aaaee7c6d0  hdparm-9.32.tar.gz
d530139a31b3941b3b0fbb4d98391a85  hdparm.initd
998430f701b1d54588cb02ef1505c3ed  hdparm.confd"