* chore: sync AUR packages (edge) * Retain ptl patch --------- Co-authored-by: ryanrhughes <1630358+ryanrhughes@users.noreply.github.com> Co-authored-by: David Heinemeier Hansson <david@hey.com>
28 lines
815 B
Bash
28 lines
815 B
Bash
# Maintainer: Andrej Benz <hello[at]benz[dot]dev>
|
|
|
|
pkgname=elephant-websearch
|
|
pkgver=2.20.3
|
|
pkgrel=1
|
|
pkgdesc='websearch provider for elephant'
|
|
url='https://github.com/abenz1267/elephant'
|
|
arch=('x86_64' 'aarch64')
|
|
license=('GPL')
|
|
makedepends=('go')
|
|
conflicts=('elephant-websearch')
|
|
provides=('elephant-websearch')
|
|
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
|
|
sha256sums=('abf48f9fd3601e56dd211028f59b9ced9d6979aeb46c1d8b7d8bbd073f8e5a20')
|
|
|
|
build() {
|
|
cd elephant-${pkgver}/internal/providers/websearch
|
|
go build -ldflags="-s -w" -buildvcs=false -buildmode=plugin -trimpath
|
|
}
|
|
|
|
package() {
|
|
cd elephant-${pkgver}/internal/providers/websearch
|
|
install -Dm 755 websearch.so -t "${pkgdir}/usr/lib/elephant"
|
|
|
|
cd ../../../
|
|
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
}
|