blob: f03d23032ae197ea1a4b7807b8261e246e83a8b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# Maintainer: Andrej Benz <hello[at]benz[dot]dev>
pkgname=elephant-dnfpackages
pkgver=2.21.0
pkgrel=1
pkgdesc='dnfpackages provider for elephant'
url='https://github.com/abenz1267/elephant'
arch=('x86_64' 'aarch64')
license=('GPL')
makedepends=('go')
conflicts=('elephant-dnfpackages')
provides=('elephant-dnfpackages')
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('7631900b656511ccd3e82e832c4feaab3796f4e074e7829d91dd1bd2402f5c16')
build() {
cd elephant-${pkgver}/internal/providers/dnfpackages
go build -ldflags="-s -w" -buildvcs=false -buildmode=plugin -trimpath
}
package() {
cd elephant-${pkgver}/internal/providers/dnfpackages
install -Dm 755 dnfpackages.so -t "${pkgdir}/usr/lib/elephant"
cd ../../../
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|