testing/mathomatic: add busybox compat patch

This commit is contained in:
William Pitcock 2011-12-13 06:26:09 -06:00
parent db310ffd96
commit 68e216e4fc
2 changed files with 15 additions and 2 deletions

View File

@ -12,7 +12,8 @@ depends_dev="readline-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://mathomatic.org/mathomatic-$pkgver.tar.bz2"
source="http://mathomatic.org/mathomatic-$pkgver.tar.bz2
busybox.patch"
_builddir="$srcdir"/mathomatic-$pkgver
prepare() {
@ -35,4 +36,5 @@ package() {
make DESTDIR="$pkgdir" prefix="/usr" m4install
}
md5sums="f8144e9c17edf688cbb296d20efaf808 mathomatic-15.7.1.tar.bz2"
md5sums="f8144e9c17edf688cbb296d20efaf808 mathomatic-15.7.1.tar.bz2
c8e6c51e094625c3912cbcf8f2bb21e8 busybox.patch"

View File

@ -0,0 +1,11 @@
--- mathomatic-15.7.1.orig/makefile
+++ mathomatic-15.7.1/makefile
@@ -33,7 +33,7 @@
CC ?= gcc # C compiler to use; this statement doesn't work usually, instead using cc.
M4 ?= m4 # Change this to gm4 in Unix or a non-GNU system.
INSTALL ?= install # Installer utility to use; change to ginstall under Unix.
-INSTALL_PROGRAM ?= $(INSTALL) -Cv # Command to install executable program files; compares to see if any differences, first.
+INSTALL_PROGRAM ?= $(INSTALL) -c # Command to install executable program files; compares to see if any differences, first.
INSTALL_DATA ?= $(INSTALL) -m 0644 # command to install data files
CC_OPTIMIZE ?= -O3 # Default C compiler optimization flags that are safe.