[arch-commits] Commit in gitea/trunk (PKGBUILD)
Bruno Pagani
archange at gemini.archlinux.org
Sat Mar 19 13:43:20 UTC 2022
Date: Saturday, March 19, 2022 @ 13:43:20
Author: archange
Revision: 1160842
upgpkg: gitea 1.16.4-1
Enable tests, use the new deps target
Modified:
gitea/trunk/PKGBUILD
----------+
PKGBUILD | 20 +++++++++++++-------
1 file changed, 13 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-19 13:27:34 UTC (rev 1160841)
+++ PKGBUILD 2022-03-19 13:43:20 UTC (rev 1160842)
@@ -3,7 +3,7 @@
# Contributor: Frederik Schwan <frederik dot schwan at linux dot com>
pkgname=gitea
-pkgver=1.15.11
+pkgver=1.16.4
pkgrel=1
pkgdesc="Painless self-hosted Git service, community managed."
arch=(x86_64)
@@ -20,8 +20,9 @@
'redis: Redis support'
'sqlite: SQLite support'
)
+checkdepends=(openssh)
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}?signed"
gitea.tmpfiles
gitea.service
@@ -42,15 +43,15 @@
)
install=gitea.install
-prepare() {
+pkgver() {
cd ${pkgname}
- # Fetch dependency using go mod
- make vendor
+ git describe --tags | sed 's/^v//'
}
-pkgver() {
+prepare() {
cd ${pkgname}
- git describe --tags | sed 's/^v//'
+ git cherry-pick -n 9bcbbd419fba4fc9eed724746a42e22028d47625
+ make deps
}
build() {
@@ -65,6 +66,11 @@
make -j1
}
+check() {
+ cd ${pkgname}
+ make test
+}
+
package() {
install -Dm755 ${pkgname}/${pkgname} -t "${pkgdir}"/usr/bin/
install -Dm644 ${pkgname}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
More information about the arch-commits
mailing list