summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-06-03 13:11:27 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-06-03 13:11:27 (EDT)
commitbca7dbbc209e2256ab1bf3054bbc6e2638bb8cbb (patch)
treebf88579ec08e1e3035eb55376b919a5ced2c7d8b /build
parent2c0f711d9bf87797d8de5a9a6e3fad2eeb31076d (diff)
Use SPF 2.0, opkhelper 3.0, and new upstream ver.
Diffstat (limited to 'build')
-rwxr-xr-xbuild34
1 files changed, 11 insertions, 23 deletions
diff --git a/build b/build
index 0bbac7d..6038f29 100755
--- a/build
+++ b/build
@@ -1,26 +1,14 @@
-#! /usr/bin/make -f
+#!/usr/bin/make -f
-VER = 1.0
-PKGS = opkhelper-$(VER) opkhelper-$(VER)-doc
+include ../source.mk
-$(PKGS): opkhelper.buildstamp
+build:
+ oh-autoconfigure -- \
+ --bindir=/usr/share/$(OPK_SOURCE) \
+ --libdir=/usr/share \
+ --with-libopkbuild.1=/usr/share/libopkbuild.1
+ oh-autobuild
-.SILENT: opkhelper.buildstamp
-opkhelper.buildstamp:
- mkdir build && cd build && \
- ../src/configure --prefix=/usr --libdir=/usr/share && \
- make && make DESTDIR=$$(pwd)/../dest install
- mv dest/usr/share/opkhelper dest/usr/share/opkhelper-$(VER)
- for file in dest/usr/bin/*; do \
- basename="$${file##*/}"; \
- mv "$${file}" "$${file}-$(VER)"; \
- done
- for file in dest/usr/share/man/man*/*; do \
- basename="$${file##*/}"; \
- mv "$${file}" "$${file%.*}-$(VER).$${basename##*.}"; \
- done
- oh-installfiles $(PKGS)
- oh-installdocs opkhelper-$(VER)
- oh-gencontrol $(PKGS)
- oh-buildopk $(PKGS)
- touch $@
+install: build
+ oh-autoinstall
+ oh-installfiles