diff options
Diffstat (limited to 'build')
-rwxr-xr-x | build | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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 $@ |