2015-05-07 18:07:49 +02:00
|
|
|
BUILD_DIR="./var/tmp/${PKGNAME}.build"
|
|
|
|
|
|
|
|
case "${ACTION}" in
|
|
|
|
post)
|
|
|
|
. usr/lib/btsync/btsync-vars.sh
|
|
|
|
mkdir -p "$BUILD_DIR"
|
|
|
|
(
|
|
|
|
cd "$BUILD_DIR"
|
|
|
|
xbps-uhelper fetch "${BTSYNC_URL}>$PKGNAME.tar.gz"
|
|
|
|
echo "$BTSYNC_CHECKSUM $PKGNAME.tar.gz" > chksum
|
|
|
|
sha256sum -c chksum || exit 1
|
|
|
|
tar xf "$PKGNAME.tar.gz"
|
|
|
|
) || {
|
|
|
|
echo Error while extracting;
|
|
|
|
rm -r $BUILD_DIR;
|
|
|
|
exit 1;
|
|
|
|
}
|
|
|
|
cp $BUILD_DIR/btsync "usr/bin/btsync"
|
|
|
|
;;
|
2015-05-08 21:40:52 +02:00
|
|
|
esac
|