summaryrefslogtreecommitdiffstats
path: root/package-build-software.txt
diff options
context:
space:
mode:
Diffstat (limited to 'package-build-software.txt')
-rw-r--r--package-build-software.txt47
1 files changed, 47 insertions, 0 deletions
diff --git a/package-build-software.txt b/package-build-software.txt
new file mode 100644
index 0000000..ae47f59
--- /dev/null
+++ b/package-build-software.txt
@@ -0,0 +1,47 @@
+buildpkg
+
+sanity checks to make sure $PWD is a source package
+mkdir -p tmp/dest/usr/src/<pkgname>_<pkgver>
+cd tmp
+for file in ../*
+ case $file in
+ ../tmp)
+ ;;
+ ../*)
+ cp -R $file dest/usr/src/<pkgname>_<pkgver>
+build opk of dest: <pkgname>-src_<pkgver>-<pkgrev>_all.opk
+rm -Rf dest
+for binpkgdir in ../*.pkg/
+ check Architecture field in $binpkgdir/control
+ if Architecture == host arch or Architecture == all
+ mkdir dest
+ unpack or copy sources to src
+ binpkg = substring of $binpkgdir without '../' and '.pkg'
+ ../build $binpkg
+ for file in *
+ case $file in
+ *.buildstamp)
+ ;;
+ *)
+ rm -Rf $file
+ ;;
+ esac
+
+
+package 'build' file
+
+makefile
+one target for each binary package
+targets for split binary packages should all be listed in one target rule
+ rule should simply depend on a buildstamp rule
+ buildstamp rule should perform build/install and touch a buildstamp
+example target:
+ cd src
+ configure --prefix=/usr
+ make
+ make DESTDIR=../dest install
+ maybe objcopy debug symbols from binaries
+ strip binaries
+ for each binary package
+ cp or mv files listed in install file from dest to new directory
+ build opk of new directory