blob: 0da67022659ee67691c4b21f2c7a15bcd9cd3fed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Maintainer: MrHacker <david.munozm@proton.me>
# Maintainer: Maximilian Friedersdorff <max@friedersdorff.com>
# Contributor: kageru <kageru@encode.moe>
# Contributor: Sam Whited <sam@samwhited.com>
# Contributor: Francois Menning <f.menning@pm.me>
# Contributor: Anton Kudryavtsev <anton@anibit.ru>
# Contributor: Frederik Schwan <frederik dot schwan at linux dot com>
# Contributor: Thomas Fanninger <thomas@fanninger.at>
# Contributor: Alexander F Rødseth <xyproto@archlinux.org>
# Contributor: Thomas Laroche <tho.laroche@gmail.com>
_pkgname='forgejo'
pkgname=forgejo-git
pkgver=v8.0.0.dev.r592.g5c5cc42fe0
pkgrel=1
pkgdesc='Self-hosted, lightweight software forge. A "soft" fork of Gitea.'
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
url='https://forgejo.org'
license=('MIT')
depends=('git')
makedepends=('go' 'npm')
optdepends=(
'mariadb: MariaDB support'
'memcached: MemCached support'
'openssh: GIT over SSH support'
'pam: Authentication via PAM support'
'postgresql: PostgreSQL support'
'redis: Redis support'
'sqlite: SQLite support'
)
backup=('etc/forgejo/app.ini')
conflicts=('forgejo')
provides=('forgejo')
source=(
"${_pkgname}::git+https://codeberg.org/${_pkgname}/${_pkgname}.git"
"${_pkgname}.tmpfiles"
"${_pkgname}.service"
"${_pkgname}.sysusers"
app.ini
)
sha512sums=('SKIP'
'9a3aa163892eaa889e74d066db9d620db098535b08fa51df689e7aa5885393a14b820308364196db54d7ce502791ea56b662d8aede17fad99f8f62d1a3ca6776'
'ac8bbe3c13ff5d544499d3b1c6291348712aea20d0a56906691f47e8df4cbe7cde22e2a2f02c927fa106f597db4ca0fc0db69dda51f2ad86eff1ffd2da978d35'
'74d9eb51eec3d614f68744df47cc1a1c6ddfdc8fbfdcb20ecffc7e4105e20055ddcd8dd29eb39a79177bf712708c9e15bcfc1b89c3920ec1579b7bf50f98b7b5'
'582cbd9deceb039e169d5a701831f4eb9fe07004ae485642f7038e931799596e01efd37c086ff15d80118e44ff72ab539efa847f8fb2556850cadf3877e28f8f')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd ${srcdir}/${_pkgname}
# Be nice to people with read-only home
GOCACHE="${srcdir}/cache" make vendor
}
build() {
cd ${srcdir}/${_pkgname}
# Again, be nice to people with read-only home
export GOCACHE="${srcdir}/cache"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export LDFLAGS="-X 'code.gitea.io/gitea/modules/setting.AppWorkPath=/var/lib/forgejo/'"
export EXTRA_GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
export TAGS="bindata sqlite sqlite_unlock_notify pam"
make -j
}
package() {
# install -Dm755 ${_pkgname}/gitea "${pkgdir}"/usr/bin/${_pkgname}
install -Dm644 ${_pkgname}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
install -Dm644 ${_pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
install -Dm644 ${_pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${_pkgname}.conf
install -Dm644 ${_pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${_pkgname}.conf
install -Dm644 app.ini "${pkgdir}"/etc/${_pkgname}/app.ini
}
# vim: ts=2 sw=2 et:
|