X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail.toastin.space (mail.toastin.space [207.246.93.162]) by lists.alpinelinux.org (Postfix) with ESMTP id A70945C5919 for ; Sun, 11 Nov 2018 05:40:57 +0000 (GMT) Received: from mail.toastin.space (localhost [127.0.0.1]) by mail.toastin.space (OpenSMTPD) with ESMTP id b7556c50 for ; Sun, 11 Nov 2018 00:40:57 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=toastin.space; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; s=ml; bh=v9NUEpX/G8nEyaNFhRppfomzvjI=; b=hpNvB5r3u0IltDku0io5vg +WM2ykhcU8H6vVKmS+zV/Yl8TQvN1v7Mc91a1wNMipMn8rr6JcSv1B23p7F8//gk /Ij3jQHe2EF11xCpQmiPeafV54SCKxkWcS2NXWe+csVc0xWSDNcRJc5y+oxv69M4 aF0BsC5iEm2ROrvveGruR72FYmkwBI4+JdpLxuQY+BDjHJ2vF/2COVsAiFPw5E0y lNUDJv2C2bR3OQynDge1XR7DDhNSPgJ+bmhJax6WEq8oKiKhYtNB+UVwNs4yM96Y ij26q+EJwB9829YlKgk2FDwhmP5vPMp93oDt8CY7lqsRWO8878Cri53Cyyv2fHSg == DomainKey-Signature: a=rsa-sha1; c=nofws; d=toastin.space; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; q=dns; s=ml; b=ChEJvU3dddkzj59AhJkfeN61nIY6jzC+cDi90+39ODeHtTo8 fWSMlaS/HbR6aYbWkZ3VAOz54cr95vZlaXLSFkNO6ett9j5RuOFQMyOdZYNHdrux R8zIx3vcojQ33dj3duD2e630/QpuJRQQ/6CtEyXvepusXyd/GkLAJb1GLUbg4wNJ lIq/P9ete/3jBGJnkp3O7w+VItOUafvIkjHaBtwTIwjhbj76qp3ZwIHRzbXPGPHr 8nTe3lNP3hoCAe9qYgPEqDMoyS/66N33Wq7nO0/XeKzBFtm7CRaAw5L7P9o33oaJ Xq53xknt7cbRos2mDhwMifa3OoUqtM7lEtD4qg== Received: from LapToast.home.toastin.space (192-222-169-215.qc.cable.ebox.net [192.222.169.215]) by mail.toastin.space (OpenSMTPD) with ESMTPSA id c809a6d6 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sun, 11 Nov 2018 00:40:57 -0500 (EST) From: Chloe Kudryavtsev To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH] testing/ripgrep: new aport Date: Sun, 11 Nov 2018 00:40:56 -0500 Message-Id: <20181111054056.28633-1-toast@toastin.space> X-Mailer: git-send-email 2.19.1 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit A search tool that combines the usability of ag with the raw speed of grep. --- testing/ripgrep/APKBUILD | 69 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 testing/ripgrep/APKBUILD diff --git a/testing/ripgrep/APKBUILD b/testing/ripgrep/APKBUILD new file mode 100644 index 0000000000..a1693a8739 --- /dev/null +++ b/testing/ripgrep/APKBUILD @@ -0,0 +1,69 @@ +# Contributor: Chloe Kudryavtsev +# Maintainer: Chloe Kudryavtsev +pkgname=ripgrep +pkgver=0.10.0 +pkgrel=0 +pkgdesc="A search tool that combines the usability of ag with the raw speed of grep" +url="https://github.com/BurntSushi/ripgrep" +arch="all" +license="MIT Unlicense" +depends="" +makedepends="asciidoc cargo" +install="" +subpackages=" + $pkgname-doc + $pkgname-bash-completion:bash:noarch + $pkgname-fish-completion:fish:noarch + $pkgname-zsh-completion:zsh:noarch + " +source="$pkgname-$pkgver.tar.gz::https://github.com/BurntSushi/$pkgname/archive/$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + export CARGO_HOME="$srcdir"/cargo + export RUSTFLAGS="-C target-feature=-crt-static" + cargo build \ + --release \ + --verbose + + # check() removes all of these, because technically they're just cache + mv target/release/build/ripgrep-*/out/rg.1 . + mv target/release/build/ripgrep-*/out/rg.bash . + mv target/release/build/ripgrep-*/out/rg.fish . +} + +check() { + cd "$builddir" + export CARGO_HOME="$srcdir"/cargo + export RUSTFLAGS="-C target-feature=-crt-static" + cargo test --all \ + --release \ + --verbose +} + +package() { + cd "$builddir" + install -m755 -D target/release/rg "$pkgdir/usr/bin/rg" + install -m644 -D rg.1 "$pkgdir/usr/share/man/man1/rg.1" + + install -m644 -D rg.bash "$pkgdir/usr/share/bash-completions/completions/rg" + install -m644 -D rg.fish "$pkgdir/usr/share/fish/completions/rg.fish" + install -m644 -D complete/_rg "$pkgdir/usr/share/zsh/site-functions/_rg" +} + +bash() { + mkdir -p "$subpkgdir/usr/share" + mv "$pkgdir/usr/share/bash-completions" "$subpkgdir/usr/share/" +} + +fish() { + mkdir -p "$subpkgdir/usr/share" + mv "$pkgdir/usr/share/fish" "$subpkgdir/usr/share/" +} + +zsh() { + mkdir -p "$subpkgdir/usr/share" + mv "$pkgdir/usr/share/zsh" "$subpkgdir/usr/share/" +} +sha512sums="bc193d269131823076fdb857f69a95c165e88848896379039218139136028e3705e09f1b9be33903e060c8cc37ad5b992ea70a05f6f01c6210bef535a35570c0 ripgrep-0.10.0.tar.gz" -- 2.19.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---