aboutsummaryrefslogtreecommitdiffstats
path: root/main/hdparm/APKBUILD
blob: 462c9b0cd120e8fdc29d23f489b909747c076a16 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hdparm
pkgver=9.52
pkgrel=0
pkgdesc="A shell utility for manipulating Linux IDE drive/driver parameters"
url="http://sourceforge.net/projects/hdparm/"
arch="all"
license="BSD"
makedepends="linux-headers"
options="!check"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver

build() { 
	cd "$builddir"
	export CFLAGS="$CFLAGS -D_GNU_SOURCE"
	make
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/usr "$pkgdir"/sbin
	make DESTDIR="$pkgdir" install
	install -m755 contrib/idectl "$pkgdir"/sbin
	install -m755 contrib/ultrabayd "$pkgdir"/sbin
	install -D -m 644 LICENSE.TXT $pkgdir/usr/share/licenses/hdparm/LICENSE.TXT
}

sha512sums="7c37d1381c1dd2d46762a8cdcaba2015b0b051ee7bd135dbcf6346def51b085cc2f9ecd7e1ebdc67e12ab4b765df548d4757b3700ed6e7514c2b13ed40661c59  hdparm-9.52.tar.gz"