summaryrefslogblamecommitdiff
path: root/user/hdparm/APKBUILD
blob: 423948de0226c2256fdcb706321d7cf6a8052f8a (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                    
           



                                                        
                                                  
                                          
          
                           
                          
                                                                                       






                                                  




                                             





                                                                                    
                                                                                                                                                                 
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Dan Theisen <djt@hxx.in>
pkgname=hdparm
pkgver=9.62
pkgrel=0
pkgdesc="Utility for manipulating IDE device parameters"
url="https://sourceforge.net/projects/hdparm"
arch="all"
options="!check"  # This application has no tests.
license="BSD-2-clause OR GPL-2.0-or-later"
depends=""
makedepends="linux-headers"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"

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

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

package() {
	make DESTDIR="$pkgdir" install
	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
}

sha512sums="ac6c4d285d081ecd8c7b231192a5a0fc268d934eeeb59794ae9a9db01ecbdd0afa0cade6ed42a1fd26ad543c52a3b380ac4f1b679992d167becb4ed6251fd369  hdparm-9.62.tar.gz"