diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-10-02 20:43:31 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-10-02 20:43:31 +0000 |
commit | 059c497470209c65789735877f283363b1ed9d4f (patch) | |
tree | 274b3dd14315a4a98e03874231ffa4bb5407e4f3 /user/the_silver_searcher | |
parent | 8935fb531907910280c7642e6abd2ae853eed465 (diff) | |
download | packages-059c497470209c65789735877f283363b1ed9d4f.tar.gz packages-059c497470209c65789735877f283363b1ed9d4f.tar.bz2 packages-059c497470209c65789735877f283363b1ed9d4f.tar.xz packages-059c497470209c65789735877f283363b1ed9d4f.zip |
user/the_silver_searcher: new package
Diffstat (limited to 'user/the_silver_searcher')
-rw-r--r-- | user/the_silver_searcher/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/user/the_silver_searcher/APKBUILD b/user/the_silver_searcher/APKBUILD new file mode 100644 index 000000000..c9f324a69 --- /dev/null +++ b/user/the_silver_searcher/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=the_silver_searcher +pkgver=2.2.0 +pkgrel=0 +pkgdesc="Tool for very fast searching of text in documents and code" +url="https://geoff.greer.fm/ag/" +arch="all" +options="!check" # Tests are not shipped in the release tarball... +license="Apache-2.0" +depends="" +makedepends="pcre-dev xz-dev zlib-dev" +checkdepends="cram" +subpackages="$pkgname-doc" +source="https://geoff.greer.fm/ag/releases/the_silver_searcher-$pkgver.tar.gz" +builddir="$srcdir/the_silver_searcher-$pkgver" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="89d4e4f7f34c0d57aa880e7c3466f0373b961744a89ad30541e89e2d614322ab46c8044ec458406a117f74b0fea14cd3063fa4e0624a96526aa23eaccd6f1141 the_silver_searcher-2.2.0.tar.gz" |