Commit ae3c2f16 authored by Roberto Oliveira's avatar Roberto Oliveira Committed by Natanael Copa

main/the_silver_searcher: fix build and add check

trick configurescript to not find fopencookie to fix build.
Also add a simple test as upstream doesn't provide tests.
parent 40d074c2
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=the_silver_searcher
pkgver=2.1.0
pkgrel=0
pkgrel=1
pkgdesc="A code searching tool similar to ack, with a focus on speed."
url="https://geoff.greer.fm/ag/"
arch="all"
......@@ -17,6 +17,7 @@ source="https://geoff.greer.fm/ag/releases/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
build () {
cd "$builddir"
ac_cv_func_fopencookie=no \
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -27,6 +28,11 @@ build () {
make
}
check() {
cd "$builddir"
./ag --help > /dev/null
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment