summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-30 14:35:35 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-30 14:35:35 (EDT)
commit70fc9de11840851fb87925e436e498302d4701ca (patch)
tree89165c77fba3fdf1359f932dc5949fe3ee9bf6ce /build
parent2b87748fbb3919567b371827a88eb7a9bc766ed8 (diff)
Update packaging to SPF 2.0 and opkhelper 3.0.
Diffstat (limited to 'build')
-rwxr-xr-xbuild26
1 files changed, 9 insertions, 17 deletions
diff --git a/build b/build
index 1289978..bc2cfba 100755
--- a/build
+++ b/build
@@ -1,19 +1,11 @@
-#! /usr/bin/make -f
+#!/usr/bin/make -f
-PKGS = gettext gettext-dev gettext-doc
+build:
+ oh-autoconfigure -s src/gettext-runtime -B src/gettext-runtime -- \
+ --enable-threads --disable-java
+ oh-autobuild -s src/gettext-runtime -B src/gettext-runtime
-$(PKGS): gettext.buildstamp
-
-.SILENT: gettext.buildstamp
-gettext.buildstamp:
- cd src/gettext-runtime && \
- ./configure --prefix=/usr \
- --enable-threads --disable-java && \
- make && make DESTDIR=$$(pwd)/../../dest install
- oh-strip -gl /usr/lib/libasprintf.so.0.0.0
- oh-strip -g /usr/bin/gettext /usr/bin/ngettext /usr/bin/envsubst
- oh-installfiles $(PKGS)
- oh-installdocs gettext
- oh-gencontrol $(PKGS)
- oh-buildopk $(PKGS)
- touch gettext.buildstamp
+install: build
+ oh-autoinstall -s src/gettext-runtime -B src/gettext-runtime
+ oh-strip -k
+ oh-installfiles