Files
ports/core/scratchpkg/spkgbuild
2023-05-07 02:19:12 +08:00

32 lines
763 B
Plaintext

# description : A simple package manager for Linux Distribution
# depends : coreutils libarchive git
name=scratchpkg
version=20230326
release=2
backup="etc/scratchpkg.conf
etc/scratchpkg.alias
etc/scratchpkg.repo
etc/scratchpkg.mask
etc/revdep.conf"
scratchpkg_url=https://github.com/venomlinux/scratchpkg
commit="d848402f95053e9c22c46d7a5492f01ebe049c55"
source="$name-$version.tar.gz::https://github.com/venomlinux/scratchpkg/archive/$commit.tar.gz
$name.repo
$name.conf
temporary_workaround_for_coreutils.patch"
build() {
cd $name-$commit
for s in $SRC/*; do
case $s in
*.patch) patch -Np1 -i $s;;
esac
done
DESTDIR=$PKG ./INSTALL.sh
install -m644 $SRC/$name.repo $PKG/etc/$name.repo
install -m644 $SRC/$name.conf $PKG/etc/$name.conf
}