Verified Commit 318b6c35 authored by 6543's avatar 6543

community/gitea: upgrade to v1.10.6

parent 109074e6
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Contributor: 6543 <6543@obermui.de>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: 6543 <6543@obermui.de>
pkgname=gitea
pkgver=1.10.1
pkgrel=1
pkgver=1.10.6
pkgrel=0
pkgdesc="A self-hosted Git service written in Go"
url="https://gitea.io"
arch="all"
......@@ -17,20 +17,19 @@ install="$pkgname.pre-install"
pkgusers="gitea"
pkggroups="www-data"
subpackages="$pkgname-openrc"
source="${pkgname}-${pkgver}.tar.gz::https://github.com/go-gitea/$pkgname/archive/v$pkgver.tar.gz
source="$pkgname-$pkgver.tar.gz::https://github.com/go-gitea/gitea/archive/v$pkgver.tar.gz
$pkgname.initd
$pkgname.ini
"
builddir="$srcdir/src/code.gitea.io/$pkgname"
case "$CARCH" in
armhf) options="!check" ;; # FIXME
x86_64|s390x|x86|armhf) options="$options !check" ;;
esac
prepare() {
mkdir -p ${builddir%/*}
mv "$srcdir"/$pkgname-$pkgver "$builddir"/
cd "$builddir"
default_prepare
}
......@@ -43,17 +42,16 @@ build() {
}
check() {
## "make test" - modified (exclude broken tests) #https://github.com/go-gitea/gitea/issues/8089
## "make test" - modified (exclude broken tests)
## 'code.gitea.io/gitea/modules/migrations': github hase rate limits! 403 API
PACKAGES=$(go list ./... | grep -v /vendor/ | \
grep -v 'code.gitea.io/gitea/modules/migrations' | \
grep -v 'code.gitea.io/gitea/integrations' | \
grep -v '^code.gitea.io/gitea/models$' | \
grep -v 'code.gitea.io/gitea/modules/git' | \
grep -v 'code.gitea.io/gitea/modules/charset' | \
grep -v 'code.gitea.io/gitea/modules/repofiles')
grep -v 'code.gitea.io/gitea/integrations' | \
grep -v 'code.gitea.io/gitea/modules/git')
GO111MODULE=on go test -mod=vendor -tags='sqlite sqlite_unlock_notify' $PACKAGES
timeout -s ABRT 20m make test-sqlite
}
package() {
......@@ -70,7 +68,7 @@ package() {
setcap cap_net_bind_service=+ep \
"$pkgdir"/usr/bin/$pkgname
install -D -m 644 -o gitea -g www-data "$srcdir"/${pkgname}.ini \
install -D -m 644 -o gitea -g www-data "$srcdir"/$pkgname.ini \
"$pkgdir"/etc/$pkgname/app.ini
chown gitea:www-data "$pkgdir"/etc/$pkgname
......@@ -81,6 +79,6 @@ package() {
"$pkgdir"/etc/init.d/$pkgname
}
sha512sums="d7baea6ac9aca3a3226d36325000c71c886d560eeecb2fdbed924b4924db34882cdd82d07120e3c7175a6d87140a1f63cc575c3be44513e08f8e557856b39acd gitea-1.10.1.tar.gz
sha512sums="be64f73eb0819c28e444b9dae8d4baecd910aad790efeb515a981542125679257f48a5f4ab1c8453b5372a0c8b1e9b84275e61c89dcd2137d7f7cfe8c71f917b gitea-1.10.6.tar.gz
2497e6f2a18e3ceb65352cd220eab2c1c0893d0e731600462a60397de2b70d7c1de7db2af2769b25fe708b0822c811bb20dc797b59b9dd93efb376bea1c35796 gitea.initd
27a202006d6e8d4146659f6356eaa99437f9f596dd369e9430d64b859bc6a1ad16091eef09232aa385fe1bf8ca94bbdf31b94975068220ad10338cded384f726 gitea.ini"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment