APKBUILD 973 Bytes
Newer Older
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hdparm
3
pkgver=9.58
4
pkgrel=0
5 6
pkgdesc="Utility for manipulating IDE device parameters"
url="https://sourceforge.net/projects/hdparm"
7
arch="all"
8
license="BSD GPL-2.0"
9 10
makedepends="linux-headers"
options="!check"
11
subpackages="$pkgname-doc"
12
source="https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
13 14 15 16 17 18
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	sed -i '/^LDFLAGS/d' "$builddir"/Makefile 
}
19

20
build() {
21
	cd "$builddir"
22
	export CFLAGS="$CFLAGS -D_GNU_SOURCE"
23
	make
24 25 26
}

package() {
27
	cd "$builddir"
28
	make DESTDIR="$pkgdir" install
29 30 31
	install -D -m755 contrib/idectl "$pkgdir"/sbin
	install -D -m755 contrib/ultrabayd "$pkgdir"/sbin
	install -D -m644 LICENSE.TXT "$pkgdir"/usr/share/licenses/hdparm/LICENSE.TXT
32
}
33

34
sha512sums="42fb70f494aae4cc205ca68c3e883e1f4fc33e8ced1914e280e9f3faa7233d3f839e59178ec09ddb9d32e9d2bca122ce324645ecb5ac73defa284030ac7d3cea  hdparm-9.58.tar.gz"