From bca7dbbc209e2256ab1bf3054bbc6e2638bb8cbb Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 03 Jun 2013 13:11:27 -0400 Subject: Use SPF 2.0, opkhelper 3.0, and new upstream ver. --- (limited to 'build') 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 -- cgit v0.9.1