summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-01-16 04:45:16 (EST)
committer P. J. McDermott <pjm@nac.net>2012-01-16 04:45:16 (EST)
commit431e1cb6312dc50522c70e4488857fbcc7635953 (patch)
tree7e4bafdacdb7e793b7a263475ba22b427ee0aa83
parent6de97c9cf2cd7291e84aef592dc7bb9ea001056b (diff)
Describe the package build software.
-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