home / codeberg / blog / docs


About alyvine

Today I fixed the packaging in alyvine, the problem was in changing directory part because I wrote `cd "$PKG" | exit 1`, not `cd "$PKG" || exit 1` with double vertical bars. Alyvine still in very pre-beta because it can only compile and package and it's code very dumb, but at least it something, I just started and I know POSIX sh not on very professional level to be honest, I still look up some things from scratchpkg and stack overflow answers. I think my next step is understand the package deleting logic, because `tar tf (package name).avp.tar.xz` outputs not only just only package's directories, it also outputs like usr/local/bin if DESTDIR had DESTDIR/usr/local/bin/... etc.

About alyvine's early working, it uses the `receipt` file like Pkgbuild in prt-get:

name=sjon 
version=v13.3 
release=1 
source="https://codeberg.org/snchart/$name/archive/$version.tar.gz"  

build(){ 
    cd $name 
    $MAKE_CMD DESTDIR=$PKG 
}

This is simple receipt example, it makes sjon and installs it into $PKG, for current day it located in ~/other/alyvine/work/pkg/sjon in my system, but it's just a test and I plan to relocate it into /var/cacha/alyvine/work/sjon after