aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2018-03-28 20:19:30 +0000
committerSören Tempel <soeren+git@soeren-tempel.net>2018-03-28 23:30:08 +0200
commita6552a641da3493a8e38212e353cf8cd42a170ec (patch)
tree3c55edf479d023c4d24270a1d1cf9ddbb4cc81b0
parentcd4e22ec4d6748e073d1762fcdb1f49fd651a461 (diff)
downloadaports-a6552a641da3493a8e38212e353cf8cd42a170ec.tar.gz
aports-a6552a641da3493a8e38212e353cf8cd42a170ec.tar.bz2
aports-a6552a641da3493a8e38212e353cf8cd42a170ec.tar.xz
main/f2fs-tools: remove snapshot function
-rw-r--r--main/f2fs-tools/APKBUILD22
1 files changed, 2 insertions, 20 deletions
diff --git a/main/f2fs-tools/APKBUILD b/main/f2fs-tools/APKBUILD
index 1e6e999a2f..dd9639bc66 100644
--- a/main/f2fs-tools/APKBUILD
+++ b/main/f2fs-tools/APKBUILD
@@ -12,27 +12,9 @@ makedepends="$depends_dev automake autoconf bsd-compat-headers
libtool util-linux-dev linux-headers"
install=""
subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"
-source="https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/$pkgname.git/snapshot/$pkgname-$pkgver.tar.gz"
-#source="http://dev.alpinelinux.org/archive/f2fs-tools/f2fs-tools-$pkgver.tar.gz"
-disturl="dev.alpinelinux.org:/archive/$pkgname/"
-giturl="git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git"
-
+source="https://git.kernel.org/cgit/linux/kernel/git/jaegeuk/$pkgname.git/snapshot/$pkgname-$pkgver.tar.gz
+ "
builddir="$srcdir/$pkgname-$pkgver"
-snapshot() {
- local _format="tar.gz"
- mkdir -p "$srcdir" && cd "$srcdir"
- # clone git repo and archive
- local _tag=v$pkgver
- msg "Creating git snapshot: $pkgname-$pkgver"
- git clone --branch $_tag --depth=1 \
- --bare $giturl ${pkgname}.git
- git --git-dir ${pkgname}.git archive \
- --format=$_format \
- -o $pkgname-$pkgver.$_format \
- --prefix=$pkgname-$pkgver/ $_tag
- # upload to defined distfiles url
- scp $pkgname-$pkgver.$_format $disturl
-}
prepare() {
default_prepare