morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus
Log | Files | Refs | Submodules | README | LICENSE

commit 7fac2943c237ceca395e32664483b40c58c0140f
parent 46c91b70b5a0ce63aecef890984af92c3f0c2659
Author: sin <sin@2f30.org>
Date:   Thu,  5 Sep 2013 12:31:58 +0100

Add pkgbuild script

Diffstat:
Apkgbuild | 26++++++++++++++++++++++++++
1 file changed, 26 insertions(+), 0 deletions(-)

diff --git a/pkgbuild b/pkgbuild @@ -0,0 +1,26 @@ +#!/bin/bash + +if test -z "$1"; then + echo usage: $0 pkgname 1>&2 + exit 1 +fi + +# Export important variables for the build scripts +top=$(pwd) +root=$top/root +mirror=http://dl.2f30.org/morpheus-pkgs +export top root mirror + +# Create directory hierarchy +mkdir -p $root/{bin,boot,dev,etc,svc,home,root,var,share,devel} +mkdir -p $root/share/man +mkdir -p $root/devel/{include,lib,src} +mkdir -p $root/{sys,proc} +pushd $root/ +ln -s /bin sbin +popd +mkdir -p src + +pkg=$1 +export $pkg +. pkgs/$pkg