aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ms-sys
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-12-15 09:48:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-12-15 09:48:21 +0000
commit9aac03f3fe02df0d89f1b9422529b8c4272e39cc (patch)
tree73c44ec67c203ae11a99ecb197271664ce89c09b /testing/ms-sys
parent4596aba28cdb24c6c5864f6a1fe0eb204ac004a4 (diff)
downloadaports-9aac03f3fe02df0d89f1b9422529b8c4272e39cc.tar.bz2
aports-9aac03f3fe02df0d89f1b9422529b8c4272e39cc.tar.xz
testing/ms-sys: upgrade to 2.4.0
Diffstat (limited to 'testing/ms-sys')
-rw-r--r--testing/ms-sys/APKBUILD32
-rw-r--r--testing/ms-sys/nls.patch15
2 files changed, 39 insertions, 8 deletions
diff --git a/testing/ms-sys/APKBUILD b/testing/ms-sys/APKBUILD
index 118b7aca6f..bede279010 100644
--- a/testing/ms-sys/APKBUILD
+++ b/testing/ms-sys/APKBUILD
@@ -1,8 +1,8 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=ms-sys
-pkgver=2.2.1
-pkgrel=1
+pkgver=2.4.0
+pkgrel=0
pkgdesc="A tool for creating Microsoft compatible boot records"
url="http://ms-sys.sourceforge.net/"
arch="all"
@@ -11,20 +11,36 @@ depends=""
depends_dev=""
install=""
subpackages="$pkgname-doc"
-source="http://downloads.sourceforge.net/ms-sys/ms-sys-$pkgver.tar.gz"
+source="http://downloads.sourceforge.net/ms-sys/ms-sys-$pkgver.tar.gz
+ nls.patch"
+
_builddir="$srcdir"/ms-sys-$pkgver
+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 bin/ms-sys || return 1
+ make PREFIX=/usr EXTRA_CFLAGS="-DNO_LIBINTL_OR_GETTEXT" \
+ || return 1
}
package() {
cd "$_builddir"
- install -Dm755 bin/ms-sys "$pkgdir"/usr/bin/ms-sys || return 1
- install -Dm644 man/ms-sys.1 "$pkgdir"/usr/share/man/man1/ms-sys.1 \
+ make PREFIX=/usr MANDIR=/usr/share/man DESTDIR="$pkgdir" install \
|| return 1
-
+ rm -rf "$pkgdir"/usr/lib/*.la "$pkgdir"/usr/share/locale
}
-md5sums="659fb46f1b014abe64ae7d635c5bc1f8 ms-sys-2.2.1.tar.gz"
+md5sums="6742dd1a058b1ce32cb991853d9d6bec ms-sys-2.4.0.tar.gz
+18e492b682b13f0f5be11b580bfa7788 nls.patch"
+sha256sums="afcfefb52350f632bbd4671c3f97df09e42a60d0de3e56d42682450c7ebf689e ms-sys-2.4.0.tar.gz
+4248b28fed190bd2e99f5a1b98408493a3e19fb1980c6380db39157f1e38bd2d nls.patch"
+sha512sums="17e2496d2e4815180b9f33fa0f206953fb3484e01c115a2e67d110fb04d421be7e694a434d991a7518579eadb9dce4e907dbd849dbaf6fb506758c425faa14ec ms-sys-2.4.0.tar.gz
+0d479c095b896779144fb5b145bfb4a0f13a7c1ddb79bd616b73912a973108c5c5697e5f53f39f6ebbe1c842f180ca984135b94baa55ffe5957c81c3657edef5 nls.patch"
diff --git a/testing/ms-sys/nls.patch b/testing/ms-sys/nls.patch
new file mode 100644
index 0000000000..092f64ad30
--- /dev/null
+++ b/testing/ms-sys/nls.patch
@@ -0,0 +1,15 @@
+--- ./inc/nls.h.orig
++++ ./inc/nls.h
+@@ -1,11 +1,10 @@
+ #ifndef NLS_H
+ #define NLS_H
+
+-#include <libintl.h>
+-
+ #ifdef NO_LIBINTL_OR_GETTEXT
+ #define _(String) (String)
+ #else
++#include <libintl.h>
+ #define _(String) gettext(String)
+ #endif
+ #define gettext_noop(String) (String)