From c71fa7900f033f9a75fd501d822b4a14d52e8d5c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 21 Jun 2012 12:02:30 -0400 Subject: Version packages, set libdir, fix build system. What was upstream thinking when writing configure? --- (limited to 'build') 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 $@ -- cgit v0.9.1