mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 02:27:10 +02:00
63 lines
1.8 KiB
Text
63 lines
1.8 KiB
Text
# Contributor: fossdd <fossdd@pwned.life>
|
|
# Maintainer: fossdd <fossdd@pwned.life>
|
|
pkgname=mautrix-bluesky
|
|
pkgver=0.1.1
|
|
pkgrel=0
|
|
pkgdesc="Matrix-Bluesky puppeting bridge"
|
|
url="https://docs.mau.fi/bridges/go/bluesky/"
|
|
arch="all"
|
|
license="AGPL-3.0-or-later"
|
|
makedepends="
|
|
go
|
|
olm-dev
|
|
sqlite-dev
|
|
"
|
|
install="$pkgname.pre-install"
|
|
subpackages="$pkgname-openrc $pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/mautrix/bluesky/archive/v$pkgver.tar.gz
|
|
mautrix-bluesky.initd
|
|
mautrix-bluesky.confd
|
|
"
|
|
builddir="$srcdir/bluesky-$pkgver"
|
|
options="net"
|
|
|
|
export GOFLAGS="$GOFLAGS -tags=libsqlite3"
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
export CGO_CFLAGS="$CFLAGS"
|
|
export CGO_LDFLAGS="$LDFLAGS"
|
|
|
|
go build \
|
|
-ldflags "-X main.Tag=$pkgver -X 'main.BuildTime=$(date -d @"$SOURCE_DATE_EPOCH" '+%b %_d %Y, %H:%M:%S')'" \
|
|
./cmd/mautrix-bluesky
|
|
|
|
./mautrix-bluesky -e
|
|
}
|
|
|
|
check() {
|
|
go test -v ./...
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 mautrix-bluesky \
|
|
-t "$pkgdir"/usr/bin/
|
|
install -Dm644 config.yaml \
|
|
-t "$pkgdir"/etc/mautrix-bluesky/
|
|
|
|
install -Dm755 "$srcdir"/mautrix-bluesky.initd \
|
|
"$pkgdir"/etc/init.d/mautrix-bluesky
|
|
install -Dm644 "$srcdir"/mautrix-bluesky.confd \
|
|
"$pkgdir"/etc/conf.d/mautrix-bluesky
|
|
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
|
|
sha512sums="
|
|
d147bfc5c3d697cefcfd4f7ad1a3b4469190d7bcbccbcc7831c357a5723038b58fe30064e74f730a530c813cdb6e2f201cf1fc731962dee90ae3fb0c0b03df29 mautrix-bluesky-0.1.1.tar.gz
|
|
be800cc72ac6a86cbc762a56dd558a62ddb8f352adcbfdaded7f7a8312996e65865e7a8845e52c61a28037ab463dac6c2ba8a8a30bb9087b4db0f237390ededd mautrix-bluesky.initd
|
|
97f393ebaa3dcfe759d224dc800f442c35ce8934303d655025ccf8233b07f5f39005b9873d29fddc89683116bc5f4033e125e349823faacfaa995e141945e4bf mautrix-bluesky.confd
|
|
"
|