diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-05-08 09:51:13 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-05-08 09:51:13 +0000 |
commit | 01206f5373a503e92173da62e83e58ac21531263 (patch) | |
tree | 19696875c0d6e35da0ebcf3cd568c7ef80663906 /unmaintained/mpt-status/APKBUILD | |
parent | 363bf6d28774aff396c1095ecf93c049576bcc95 (diff) | |
download | aports-01206f5373a503e92173da62e83e58ac21531263.tar.bz2 aports-01206f5373a503e92173da62e83e58ac21531263.tar.xz |
unmaintained/mpt-status: move from main
seems dead upstream and is orphaned
Diffstat (limited to 'unmaintained/mpt-status/APKBUILD')
-rw-r--r-- | unmaintained/mpt-status/APKBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/unmaintained/mpt-status/APKBUILD b/unmaintained/mpt-status/APKBUILD new file mode 100644 index 0000000000..b14cc26476 --- /dev/null +++ b/unmaintained/mpt-status/APKBUILD @@ -0,0 +1,55 @@ +# Contributor: +# Maintainer: +pkgname=mpt-status +pkgver=1.2.0 +pkgrel=0 +pkgdesc="status inquiry tool for MPT devices" +url="http://www.red-bean.com/~mab/mpt-status.html" +arch="all" +license="GPL" +depends="" +makedepends="pciutils-dev" +install="" +subpackages="$pkgname-doc" + +# XXX: main site seems to be down right now; we shadow the Debian patch anyway +source="http://ftp.de.debian.org/debian/pool/main/m/mpt-status/mpt-status_${pkgver}.orig.tar.gz + http://ftp.de.debian.org/debian/pool/main/m/mpt-status/mpt-status_${pkgver}-7.debian.tar.gz" + +_builddir="${srcdir}/mpt-status-${pkgver}" +prepare() { + local i + cd "$_builddir" + mv "${srcdir}/debian" "${_builddir}" + + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + + # apply debian patches too... + for i in $(cat ${_builddir}/debian/patches/series); do + case $i in + *.patch) msg $i; patch -p1 -i "${_builddir}/debian/patches/${i}" || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make +} + +package() { + cd "$_builddir" + + mkdir -p "$pkgdir"/usr/sbin + make DESTDIR="$pkgdir" install + + mkdir -p "$pkgdir"/usr/share/man/man8 + cp man/mpt-status.8 "$pkgdir"/usr/share/man/man8 +} + +sha512sums="48d9ecb3d9b42f7731a048ba6147fc2edabbb3ac7936c3273fc613e661f54a66c9f240283a7b84040efd059539fb1c59172b74fad50781647f98644c3da25cac mpt-status_1.2.0.orig.tar.gz +f2de35cb781bef730e28449b75f0aa2b0b7f953dfda0ebd9231ff8b7e3649db34a25daa151ae0655458de2e07b6cbadf1b7e5977c5ac7585fa491bd071e36e00 mpt-status_1.2.0-7.debian.tar.gz" |