diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-02-24 10:02:20 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-02-24 10:02:53 -0500 |
commit | 8969a60e6bfaa5ec9459258d4c5606f6392b0b6e (patch) | |
tree | dc440f9403e9f47b8df62ef4a35aba356bda6056 | |
parent | 030962471adb74c266126b6c3a2bd6e2a6b2d66c (diff) | |
download | spm_packages-8969a60e6bfaa5ec9459258d4c5606f6392b0b6e.tar.gz |
Initial commit of filesystem package
-rw-r--r-- | filesystem/build.sh | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/filesystem/build.sh b/filesystem/build.sh new file mode 100644 index 0000000..adaa6ad --- /dev/null +++ b/filesystem/build.sh @@ -0,0 +1,49 @@ +#!/bin/bash +name=filesystem +version=1.0.0 +revision=0 +sources=() +depends=() + +function prepare() { + : +} + +function build() { + : +} + +function package() { + dest="${_pkgdir}/${_prefix}" + schema=( + bin + etc + lib + libexec + opt + sbin + tmp + var/cache + var/db + var/empty + var/games + var/local + var/log + var/lock + var/lib + var/opt + var/run + var/tmp + ) + mkdir -p "${dest}" + pushd "${dest}" + for d in "${schema[@]}"; do + mkdir -p "${d}" + chmod 0755 "${d}" + done + chmod 777 tmp + chmod 777 var/tmp + ln -srf lib lib64 + popd + +} |