initial import
This commit is contained in:
27
the_silver_searcher/PKGBUILD
Normal file
27
the_silver_searcher/PKGBUILD
Normal file
@@ -0,0 +1,27 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=the_silver_searcher
|
||||
pkgver=2.2.0+git20200805
|
||||
pkgrel=1
|
||||
pkgdesc="Code searching tool similar to Ack, but faster"
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://github.com/ggreer/the_silver_searcher'
|
||||
license=('Apache-2.0')
|
||||
depends=('pcre' 'xz')
|
||||
source=("http://deb.debian.org/debian/pool/main/s/silversearcher-ag/silversearcher-ag_${pkgver}.orig.tar.gz")
|
||||
sha512sums=('fc1c681dcc7d6072eb08305c757ace84bbfa13f512b819aa22301d678651705a09abd08d3ad23f9ada33db28af1fcb96c642652aa71988f2b0432d60619124be')
|
||||
|
||||
prepare() {
|
||||
mv ${pkgname}-master ${pkgname}
|
||||
sed -i 's,configure,configure --prefix=/usr,' $pkgname/build.sh
|
||||
}
|
||||
|
||||
build() {
|
||||
CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
|
||||
./$pkgname/build.sh
|
||||
}
|
||||
|
||||
package() {
|
||||
make -C $pkgname DESTDIR="$pkgdir" install
|
||||
install -Dm644 "${srcdir}/$pkgname/LICENSE" -t "${pkgdir}/usr/share/licenses/$pkgname"
|
||||
}
|
||||
Reference in New Issue
Block a user