diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-02-18 12:56:22 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-02-18 12:56:22 -0500 |
commit | 13984f725db156cbc952d0afe90f27da15a0b85d (patch) | |
tree | b3a39b75ecaecca11ee1525a99153a7606e460cb /base | |
download | spm_packages-13984f725db156cbc952d0afe90f27da15a0b85d.tar.gz |
Initial commit
Diffstat (limited to 'base')
-rw-r--r-- | base/build.sh | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/base/build.sh b/base/build.sh new file mode 100644 index 0000000..a911a19 --- /dev/null +++ b/base/build.sh @@ -0,0 +1,75 @@ +#!/bin/bash +name=base +version=1.0.0 +revision=0 +sources=() +depends=( + # development tools + #"autoconf" + #"automake" + "binutils" + "gcc" + #"m4" + # file manipulation + #"diffutils" + #"findutils" + #"grep" + #"sed" + #"patch" + "patchelf" + # archivers + #"tar" + # compression + #"bzip2" + #"gzip" + #"xz" + #"zlib" + # terminal + #"ncurses" + #"readline" + # web + #"curl" +) + +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 1777 tmp + chmod 1777 var/tmp + ln -sf lib lib64 + popd + +} |