summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild24
-rw-r--r--bzip2.pkg/files1
2 files changed, 24 insertions, 1 deletions
diff --git a/build b/build
index bb8810b..2af8662 100755
--- a/build
+++ b/build
@@ -14,10 +14,32 @@ build:
install: build
oh-autoinstall -- PREFIX="$${PWD}/dest"
- install -d dest/usr/lib/ dest/usr/share/
+ install -d dest/usr/bin/ dest/usr/lib/ dest/usr/share/
+ # /usr/bin/bzip2 and links (bunzip2 and bzcat):
+ mv dest/bin/bzip2 dest/usr/bin/
+ rm dest/bin/bunzip2 dest/bin/bzcat
+ ln -sf bzip2 dest/usr/bin/bunzip2
+ ln -sf bzip2 dest/usr/bin/bzcat
+ # /usr/bin/bzip2recover:
+ mv dest/bin/bzip2recover dest/usr/bin/
+ # /usr/bin/bzgrep and links (bzegrep and bzfgrep):
+ mv dest/bin/bzgrep dest/usr/bin/
+ rm dest/bin/bzegrep dest/bin/bzfgrep
+ ln -sf bzgrep dest/usr/bin/bzegrep
+ ln -sf bzgrep dest/usr/bin/bzfgrep
+ # /usr/bin/bzmore and links (bzless):
+ mv dest/bin/bzmore dest/usr/bin/
+ rm dest/bin/bzless
+ ln -sf bzmore dest/usr/bin/bzless
+ # /usr/bin/bzdiff and links (bzcmp):
+ mv dest/bin/bzdiff dest/usr/bin/
+ rm dest/bin/bzcmp
+ ln -sf bzdiff dest/usr/bin/bzcmp
+ # Library, development, and documentation files:
mv dest/lib/ dest/usr/lib/$(OPK_HOST_ARCH)/
mv dest/include/ dest/usr/include/
mv dest/man/ dest/usr/share/
+ # Library links:
ln -sf libbz2.$(OPK_SOURCE_VERSION_UPSTREAM) \
dest/usr/lib/$(OPK_HOST_ARCH)/libbz2.so.1.0
ln -sf libbz2.so.1.0 dest/usr/lib/$(OPK_HOST_ARCH)/libbz2.so
diff --git a/bzip2.pkg/files b/bzip2.pkg/files
new file mode 100644
index 0000000..bc7b689
--- /dev/null
+++ b/bzip2.pkg/files
@@ -0,0 +1 @@
+/usr/bin/