Date: Tuesday, June 11, 2019 @ 14:24:37
  Author: daurnimator
Revision: 480459

add chezmoi package

Added:
  chezmoi/
  chezmoi/repos/
  chezmoi/trunk/
  chezmoi/trunk/PKGBUILD

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Added: chezmoi/trunk/PKGBUILD
===================================================================
--- chezmoi/trunk/PKGBUILD                              (rev 0)
+++ chezmoi/trunk/PKGBUILD      2019-06-11 14:24:37 UTC (rev 480459)
@@ -0,0 +1,32 @@
+# Maintainer: Daurnimator <[email protected]>
+# Contributor: Tom Payne <[email protected]>
+# Contributor:  <[email protected]>
+
+pkgname=chezmoi
+pkgver=1.5.6
+pkgrel=13
+pkgdesc="Multi-machine dotfile management system"
+arch=('x86_64')
+url='https://github.com/twpayne/chezmoi'
+license=('MIT')
+makedepends=('go-pie' 'git')
+depends=('glibc')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/twpayne/chezmoi/archive/v${pkgver}.tar.gz";)
+sha256sums=('4abd6be864e1e4bd6768e7217247a097233a0351438b1e183dac602959f36750')
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  go build \
+    -gcflags "all=-trimpath=${PWD}" \
+    -asmflags "all=-trimpath=${PWD}" \
+    -ldflags "-extldflags ${LDFLAGS}" \
+    .
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}

Reply via email to