summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
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 $@