repo/aps/build

12 lines
474 B
Text
Executable file

mkdir spkg
cd spkg
wget https://git.hippoz.xyz/alnux/aps/raw/branch/master/aps
sed -n -e 1p -e 2p -e 3p -e 4p -e 5p $1/bin/aps > config.tmp
. config.tmp
sed -i 's/^temp_location./temp_location="${temp_location}"/' aps
sed -i 's/^install_root./install_root="${install_root}"/' aps
sed -i 's/^installed_pkg_database./installed_pkg_database="${installed_pkg_database}"/' aps
sed -i 's/^locpkg_database./locpkg_database="${locpkg_database}"' aps
install -Dm755 aps $1/bin/aps