mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/gitea to 1.16.4-1
This commit is contained in:
parent
c251543698
commit
a0eda98a1b
1 changed files with 14 additions and 8 deletions
|
@ -9,7 +9,7 @@
|
||||||
# - don't check repo signature until author puts his keys on keyservers
|
# - don't check repo signature until author puts his keys on keyservers
|
||||||
|
|
||||||
pkgname=gitea
|
pkgname=gitea
|
||||||
pkgver=1.15.11
|
pkgver=1.16.4
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Painless self-hosted Git service, community managed."
|
pkgdesc="Painless self-hosted Git service, community managed."
|
||||||
arch=(x86_64)
|
arch=(x86_64)
|
||||||
|
@ -26,8 +26,9 @@ optdepends=(
|
||||||
'redis: Redis support'
|
'redis: Redis support'
|
||||||
'sqlite: SQLite support'
|
'sqlite: SQLite support'
|
||||||
)
|
)
|
||||||
|
checkdepends=(openssh)
|
||||||
options=(!lto)
|
options=(!lto)
|
||||||
_tag=594bdebf077a37c939896eea3f446954f4546c2c # git rev-parse v${pkgver}
|
_tag=8e2d483f4a56fdc5a44630c72954d1abfef2f125 # git rev-parse v${pkgver}
|
||||||
source=("git+https://github.com/go-gitea/gitea.git#tag=${_tag}"
|
source=("git+https://github.com/go-gitea/gitea.git#tag=${_tag}"
|
||||||
gitea.tmpfiles
|
gitea.tmpfiles
|
||||||
gitea.service
|
gitea.service
|
||||||
|
@ -48,17 +49,17 @@ validpgpkeys=(
|
||||||
)
|
)
|
||||||
install=gitea.install
|
install=gitea.install
|
||||||
|
|
||||||
prepare() {
|
|
||||||
cd ${pkgname}
|
|
||||||
# Fetch dependency using go mod
|
|
||||||
make vendor
|
|
||||||
}
|
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd ${pkgname}
|
cd ${pkgname}
|
||||||
git describe --tags | sed 's/^v//'
|
git describe --tags | sed 's/^v//'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd ${pkgname}
|
||||||
|
git cherry-pick -n 9bcbbd419fba4fc9eed724746a42e22028d47625
|
||||||
|
make deps
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd ${pkgname}
|
cd ${pkgname}
|
||||||
export GOGC=50
|
export GOGC=50
|
||||||
|
@ -74,6 +75,11 @@ build() {
|
||||||
make -j1
|
make -j1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd ${pkgname}
|
||||||
|
make test
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
install -Dm755 ${pkgname}/${pkgname} -t "${pkgdir}"/usr/bin/
|
install -Dm755 ${pkgname}/${pkgname} -t "${pkgdir}"/usr/bin/
|
||||||
install -Dm644 ${pkgname}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
|
install -Dm644 ${pkgname}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
|
||||||
|
|
Loading…
Reference in a new issue