rename package

This commit is contained in:
2026-03-09 22:15:10 -04:00
parent 14133da71c
commit 557203bb1c
2 changed files with 21 additions and 16 deletions

View File

@@ -2,13 +2,16 @@
# Contributor: malacology <guoyizhang at malacology dot net>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=gotosocial
pkgname=gotosocial-balki
_pkgname=gotosocial
pkgver=0.20.3
pkgrel=1
pkgdesc='ActivityPub social network server written in Golang'
arch=(x86_64)
url='https://gotosocial.org'
license=(AGPL-3.0-only)
provides=(gotosocial)
conflicts=(gotosocial)
depends=(glibc)
makedepends=(git go yarn nodejs go-swagger)
options=(!lto)
@@ -64,7 +67,7 @@ backup=(
etc/gotosocial/template/thread.tmpl
)
source=(
"$pkgname::git+https://codeberg.org/superseriousbusiness/gotosocial#tag=v$pkgver"
"$_pkgname::git+https://codeberg.org/superseriousbusiness/gotosocial#tag=v$pkgver"
sysusers.conf
tmpfiles.conf
use-fhs-directories.patch
@@ -82,7 +85,7 @@ b2sums=('ed6564b2676e383479c0509409fdb9786fa5f1027ba122afd2f9de6ffb2a10c8ec9df85
'42d59322123dbf6a2bf836f155f7d0b2a6221803acd0efc85e82aa3543654e57e15a1225787d2aadba7f96a3c2de24fb078e547e143a867f03c5bef38ecf5d09')
prepare() {
cd "$pkgname"
cd "$_pkgname"
# create directory for build output
mkdir build
@@ -97,7 +100,7 @@ prepare() {
}
build() {
cd "$pkgname"
cd "$_pkgname"
# set Go flags
export CGO_CPPFLAGS="${CPPFLAGS}"
@@ -128,20 +131,20 @@ build() {
package() {
# systemd integration
install -vDm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
install -vDm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
install -vDm644 "$pkgname/example/$pkgname.service" -t "$pkgdir/usr/lib/systemd/system"
install -vDm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/$_pkgname.conf"
install -vDm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/$_pkgname.conf"
install -vDm644 "$_pkgname/example/$_pkgname.service" -t "$pkgdir/usr/lib/systemd/system"
cd "$pkgname"
cd "$_pkgname"
# binary
install -vDm755 -t "$pkgdir/usr/bin" "build/$pkgname"
install -vDm755 -t "$pkgdir/usr/bin" "build/$_pkgname"
# configuration
install -vDm640 -t "$pkgdir/etc/$pkgname" example/config.yaml
install -vDm640 -t "$pkgdir/etc/$_pkgname" example/config.yaml
# web frontend
install -vd "$pkgdir/usr/share/$pkgname"
cp -vr web/assets/* "$pkgdir/usr/share/$pkgname"
cp -vr web/template "$pkgdir/etc/$pkgname"
install -vd "$pkgdir/usr/share/$_pkgname"
cp -vr web/assets/* "$pkgdir/usr/share/$_pkgname"
cp -vr web/template "$pkgdir/etc/$_pkgname"
}