Files
ports/core/scratchpkg/spkgbuild
2019-07-20 11:14:49 +08:00

26 lines
704 B
Plaintext

# description : A simple package manager for Linux Distribution
# depends : coreutils bash wget httpup libarchive
name=scratchpkg
version=20190720
release=2
backup=(etc/scratchpkg.conf
etc/scratchpkg.repo
etc/revdep.conf)
_commit=d47c41c8b3c53045c0b67212aea8bb8122d9c83c
source=($name-$_commit.tar.gz::https://github.com/venomlinux/scratchpkg/archive/$_commit.tar.gz
repo
repo_musl)
md5sum=(d4c891c432ca902cde4b9d6d886c53a1
04d947f818065d02f2625f4dcf2b9ba2
a4e56154de12afc5c722cb53fce8a13b)
build() {
cd $name-$_commit
DESTDIR=$PKG ./INSTALL.sh
case $OSTYPE in
*-musl) install -m644 $SRC/repo_musl $PKG/etc/scratchpkg.repo ;;
*) install -m644 $SRC/repo $PKG/etc/scratchpkg.repo ;;
esac
}