aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/megactl/APKBUILD
blob: 252048086c5aba0e42c331f90f504ece8d155fe6 (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
34
35
36
37
38
39
40
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=megactl
pkgver=0.4.1
pkgrel=0
pkgdesc="Tools for LSI megaraid adapters"
url="http://sourceforge.net/projects/megactl/"
arch="all"
license="GPLv2"
depends=""
depends_dev=""
makedepends="$depends_dev linux-headers"
install=""
subpackages=""
source="http://downloads.sourceforge.net/project/megactl/megactl/$pkgver%20beta%20source%20package/megactl-$pkgver.tar.gz"

_builddir="$srcdir"/megactl-$pkgver/src
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make ARCH= megactl megasasctl
}

package() {
	cd "$_builddir"
	install -d "$pkgdir"/usr/bin
	install megactl megasasctl "$pkgdir"/usr/bin/ || return 1
}

md5sums="5d2b2752e3f623d86220ffd9d91afb44  megactl-0.4.1.tar.gz"
sha256sums="d7aee98035c97a1ff098450192f073565c4f2355079763f6dc6202be121720e8  megactl-0.4.1.tar.gz"
sha512sums="65a97f03fbe1c76375d2e16016c1e57c7e4544bfd7185b13a330560819caf48ecad8e9f1feb1d448b45d4f862abf2799868bd357d120019a709088c90b58ac92  megactl-0.4.1.tar.gz"