[arch-commits] Commit in pacoloco/repos (2 files)
Anatol Pomozov
anatolik at gemini.archlinux.org
Wed Nov 17 19:33:00 UTC 2021
Date: Wednesday, November 17, 2021 @ 19:33:00
Author: anatolik
Revision: 1051112
archrelease: copy trunk to community-testing-x86_64
Added:
pacoloco/repos/community-testing-x86_64/
pacoloco/repos/community-testing-x86_64/PKGBUILD
(from rev 1051111, pacoloco/trunk/PKGBUILD)
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Copied: pacoloco/repos/community-testing-x86_64/PKGBUILD (from rev 1051111, pacoloco/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2021-11-17 19:33:00 UTC (rev 1051112)
@@ -0,0 +1,35 @@
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+
+pkgname=pacoloco
+pkgver=1.1
+pkgrel=1
+pkgdesc='Pacman caching proxy server'
+arch=(x86_64)
+url='https://github.com/anatol/pacoloco'
+backup=(etc/pacoloco.yaml)
+license=(MIT)
+depends=(glibc)
+makedepends=(go)
+source=(pacoloco-$pkgver.tar.gz::https://github.com/anatol/pacoloco/archive/$pkgver.tar.gz)
+sha1sums=('58fa908e904abedfbafdca862ad8aa43f6b37e78')
+
+build() {
+ cd pacoloco-$pkgver
+
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+ go build
+}
+
+package() {
+ cd pacoloco-$pkgver
+
+ install -D -m755 pacoloco "$pkgdir"/usr/bin/pacoloco
+ install -D -m644 pacoloco.yaml.sample "$pkgdir"/etc/pacoloco.yaml
+ install -D -m644 pacoloco.sysusers.d "$pkgdir"/usr/lib/sysusers.d/pacoloco.conf
+ install -D -m644 pacoloco.service "$pkgdir"/usr/lib/systemd/system/pacoloco.service
+ install -D -m644 pacoloco.tmpfiles.d "$pkgdir"/usr/lib/tmpfiles.d/pacoloco.conf
+}
More information about the arch-commits
mailing list