summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rwxr-xr-xbuild18
1 files changed, 11 insertions, 7 deletions
diff --git a/build b/build
index f532f36..892704c 100755
--- a/build
+++ b/build
@@ -2,14 +2,18 @@
include ../source.mk
+macros = \
+ bindir=/usr/share/$(OPK_SOURCE) \
+ pkgdatadir=/usr/share/$(OPK_SOURCE) \
+ archtabdir=/usr/share/opkhelper/archtab-v1
+
build:
- oh-autoconfigure -- \
- --bindir=/usr/share/$(OPK_SOURCE) \
- --libdir=/usr/share \
- --pkgdatadir=/usr/share/opkhelper-3.0 \
- --with-libopkbuild.1=/usr/share/libopkbuild.1
- oh-autobuild
+ oh-autoconfigure
+ oh-autobuild -- $(macros)
install: build
- oh-autoinstall
+ oh-autoinstall -- $(macros)
+ mv dest/usr/share/opkbuild/helpers/opkhelper \
+ dest/usr/share/opkbuild/helpers/$(OPK_SOURCE)
+ find dest/usr/share/$(OPK_SOURCE) -name '*.sm' -exec chmod a-x '{}' ';'
oh-installfiles