[arch-commits] Commit in hostess/repos (community-x86_64 community-x86_64/PKGBUILD)
Christian Rebischke
shibumi at archlinux.org
Sun Feb 21 01:56:31 UTC 2021
Date: Sunday, February 21, 2021 @ 01:56:30
Author: shibumi
Revision: 867536
archrelease: copy trunk to community-x86_64
Added:
hostess/repos/community-x86_64/
hostess/repos/community-x86_64/PKGBUILD
(from rev 867535, hostess/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: hostess/repos/community-x86_64/PKGBUILD (from rev 867535, hostess/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2021-02-21 01:56:30 UTC (rev 867536)
@@ -0,0 +1,37 @@
+# Maintainer: Christian Rebischke <chris.rebischke at archlinux.org>
+
+pkgname=hostess
+pkgver=0.5.2
+pkgrel=2
+pkgdesc="An idempotent command-line utility for managing your /etc/hosts file."
+url="https://github.com/cbednarski/hostess"
+arch=("x86_64")
+license=('MIT')
+depends=('glibc')
+makedepends=("go")
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/cbednarski/hostess/archive/v${pkgver}.tar.gz")
+sha512sums=('47c81318cdb1c62c4112612e3e93cb3a171a8daf007e123212ba459efdf73b7dbc14871ee07e9e69af37750f2eb74c4d852c6c7c252788248698b762587638dc')
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+ go build -ldflags "-linkmode=external" -o "${pkgname}-bin"
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ go test -v
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ install -Dm755 "${pkgname}-bin" "${pkgdir}/usr/bin/${pkgname}"
+}
More information about the arch-commits
mailing list