summaryrefslogtreecommitdiffstats
path: root/main/hdparm/APKBUILD
blob: 311f983879b39b696ea55518e944e6390095de91 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hdparm
pkgver=9.39
pkgrel=0
pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
url="http://sourceforge.net/projects/hdparm/"
arch="all"
license="BSD"
depends=
makedepends=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"

_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 -D -m 644 LICENSE.TXT $pkgdir/usr/share/licenses/hdparm/LICENSE.TXT || return 1
}
md5sums="2bc17b72403885d4faf959682944243b  hdparm-9.39.tar.gz"