aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/megactl/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/megactl/APKBUILD')
-rw-r--r--unmaintained/megactl/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/unmaintained/megactl/APKBUILD b/unmaintained/megactl/APKBUILD
new file mode 100644
index 0000000000..252048086c
--- /dev/null
+++ b/unmaintained/megactl/APKBUILD
@@ -0,0 +1,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"