Date: Tuesday, February 8, 2022 @ 08:19:35 Author: alerque Revision: 1128999
upgpkg: matterbridge 1.24.0-1 Modified: matterbridge/trunk/PKGBUILD ----------+ PKGBUILD | 57 +++++++++++++++++++++++++++++++-------------------------- 1 file changed, 31 insertions(+), 26 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-02-08 08:09:57 UTC (rev 1128998) +++ PKGBUILD 2022-02-08 08:19:35 UTC (rev 1128999) @@ -1,41 +1,46 @@ -# Maintainer: Bruno Pagani <[email protected]> +# Maintainer: Caleb Macalennan <[email protected]> +# Maintainer: Justin Kromlinger <[email protected]> +# Contributor: Bruno Pagani <[email protected]> pkgname=matterbridge -pkgver=1.23.2 -pkgrel=3 -pkgdesc="Multi-protocols (IRC/XMPP/Mattermost/Slack/Matrix/etc) bridge" +pkgver=1.24.0 +pkgrel=1 +pkgdesc='Multi-protocols (IRC/XMPP/Mattermost/Slack/Matrix/etc) bridge' arch=(x86_64) -url="https://github.com/42wim/matterbridge" +url="https://github.com/42wim/$pkgname" license=(Apache) -depends=(glibc gcc-libs) -makedepends=(go git) -backup=(etc/matterbridge.toml) -source=(${pkgname}-${pkgver}.tar.gz::"${url}/archive/v${pkgver}.tar.gz" - ${pkgname}-${pkgver}.tar.gz.asc::"${url}/releases/download/v${pkgver}/v${pkgver}.tar.gz.asc" - matterbridge.service) -sha512sums=('30c5fa8ed47ad68e331b8c6037169c7f17ff45f5ab2e896756b100deb37b6db4249ab54d7d5d9817cf76770cb573fb058df91b20e82a9d3d081396c52c2557c1' +depends=(glibc + gcc-libs) +makedepends=(go + git) +backup=("etc/$pkgname.toml") +_archive="$pkgname-$pkgver" +source=("$url/archive/v$pkgver/$_archive.tar.gz" + "$_archive.tar.gz.asc::$url/releases/download/v$pkgver/v$pkgver.tar.gz.asc" + "$pkgname.service") +sha256sums=('65ee39770b4799ebbe6676206cae3d067b4c7ea29773a1e7fb26c657d4b151a6' 'SKIP' - 'a16c6fd5593c63dce375ba7c572afed8f9494a1f3ccb8b51a6358fe72305c59f5f77bee0f6927ee2df7a1e2c02acc3a805d28e673fc05ff5fb55a51b6ca964ea') + '338171f409a0e55589b86959e37871d61d21dc89cec6b212b552eaf4e516e069') validpgpkeys=(CC7D978417C1AEA1E4CDD7240E41AB4BF4C610B4) # wim <[email protected]> prepare() { - cd ${pkgname}-${pkgver} - go mod vendor + cd "$_archive" + go mod vendor } 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 -ldflags=-linkmode=external" - go build -v -o ${pkgname} . + cd "$_archive" + export CGO_CPPFLAGS="$CPPFLAGS" + export CGO_CFLAGS="$CFLAGS" + export CGO_CXXFLAGS="$CXXFLAGS" + export CGO_LDFLAGS="$LDFLAGS" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -ldflags=-linkmode=external" + go build -v -o "$pkgname" . } package() { - cd ${pkgname}-${pkgver} - install -Dm755 ${pkgname} -t "${pkgdir}"/usr/bin/ - install -Dm600 matterbridge.toml.sample "${pkgdir}"/etc/matterbridge.toml - install -Dm644 ../${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/ + cd "$_archive" + install -Dm0755 -t "$pkgdir/usr/bin/" "$pkgname" + install -Dm0644 -t "$pkgdir/usr/lib/systemd/system/" "../$pkgname.service" + install -Dm0600 matterbridge.toml.sample "$pkgdir/etc/$pkgname.toml" }
