summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e45a57164297d4f6d1c66969cca82ef42a1e9ed8 (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
# Maintainer: Jonas Hahnfeld <hahnjo@hahnjo.de>

pkgname=dynconf
pkgver=1.1.2
pkgrel=1
pkgdesc="A small program to apply recipes to configuration files"
arch=('x86_64')
url="https://github.com/hahnjo/dynconf"
license=('GPL3')
depends=('glibc')
makedepends=('git' 'go')
validpgpkeys=('5F0FF9606A4BE87F553A03B691C9C33D2C61ACDB')
source=("git+https://github.com/hahnjo/dynconf#tag=v${pkgver}?signed")
sha256sums=('SKIP')

build(){
  cd "$pkgname"
  export EXTRA_GOFLAGS="-buildmode=pie -trimpath -ldflags \"-linkmode=external -extldflags ${LDFLAGS}\""
  make
}

package() {
  cd "${pkgname}"
  install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
  install -Dm644 scripts/completion.bash "$pkgdir"/usr/share/bash-completion/completions/$pkgname
}