summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-06-21 12:02:30 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-06-21 12:04:51 (EDT)
commitc71fa7900f033f9a75fd501d822b4a14d52e8d5c (patch)
tree89a06544791e049bf5c99986154e30994cc03567 /build
parente3cb13e367e82194802e4b89ea86dc6981012ce8 (diff)
Version packages, set libdir, fix build system.
What was upstream thinking when writing configure?
Diffstat (limited to 'build')
-rwxr-xr-xbuild12
1 files changed, 9 insertions, 3 deletions
diff --git a/build b/build
index 22c4114..4c1fa84 100755
--- a/build
+++ b/build
@@ -1,16 +1,22 @@
#! /usr/bin/make -f
-PKGS = opkhelper opkhelper-doc
+VER = 1.0
+PKGS = opkhelper-$(VER) opkhelper-$(VER)-doc
$(PKGS): opkhelper.buildstamp
.SILENT: opkhelper.buildstamp
opkhelper.buildstamp:
mkdir build && cd build && \
- ../src/configure --prefix=/usr && \
+ ../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/* dest/usr/share/man/man*/*; do \
+ basename="$${file##*/}"; \
+ mv "$${file}" "$${file%.*}-$(VER).$${basename##*.}"; \
+ done
oh-installfiles $(PKGS)
- oh-installdocs opkhelper
+ oh-installdocs opkhelper-$(VER)
oh-gencontrol $(PKGS)
oh-buildopk $(PKGS)
touch $@