1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-20 12:36:14 +02:00
build/pkg/tc-mpc/build
David Oberhollenzer 8fa44569d8 cleanup: remove deploy directory argument from package command
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-03-06 10:03:12 +01:00

27 lines
523 B
Plaintext
Executable file

VERSION="1.1.0"
SRCDIR="mpc-$VERSION"
TARBALL="mpc-$VERSION.tar.gz"
URL="http://ftp.gnu.org/gnu/mpc"
SHA256SUM="6985c538143c1208dcb1ac42cedad6ff52e267b47e5f970183a3e75125b43c2e"
DEPENDS="tc-pkgtool"
prepare() {
return
}
build() {
return
}
deploy() {
touch "$PKGDEPLOYDIR/$PKGNAME.files"
cat > "$PKGDEPLOYDIR/$PKGNAME.desc" <<_EOF
name $PKGNAME
_EOF
}
check_update() {
curl --silent -L "$URL" | grep -o ">mpc-[0-9.]*tar.gz<" | \
sed 's/>mpc-//g' | sed 's/.tar.gz<//g' | \
verson_find_greatest "$VERSION"
}