Package Details: gitea-git v1.13.0_dev_234_gd9aa007a9-1

Git Clone URL: (read-only, click to copy)
Package Base: gitea-git
Description: Painless self-hosted Git service. Community managed fork of Gogs.
Upstream URL:
Keywords: git
Licenses: MIT
Conflicts: gitea
Provides: gitea
Submitter: francoism90
Maintainer: kageru
Last Packager: kageru
Votes: 6
Popularity: 0.002844
First Submitted: 2016-11-15 09:57
Last Updated: 2020-09-25 17:46

Dependencies (10)

Required by (0)

Sources (5)

Latest Comments

1 2 3 4 Next › Last »

kageru commented on 2020-09-25 17:47

Upstream made changes to the default config that broke the patch. I fixed it and pushed a new version.

fclad commented on 2020-09-25 01:29

Current build is failing:

==> Validating source files with sha512sums... gitea ... Skipped gitea.tmpfiles ... Passed gitea.service ... Passed gitea.sysusers ... Passed gitea-arch-defaults.patch ... Passed ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Creating working copy of gitea git repo... Cloning into 'gitea'... done. Updating files: 100% (9521/9521), done. ==> Starting prepare()... patching file custom/conf/app.example.ini Hunk #1 FAILED at 7. Hunk #2 succeeded at 324 (offset 9 lines). Hunk #3 succeeded at 394 (offset 9 lines). Hunk #4 succeeded at 801 (offset 40 lines). Hunk #5 succeeded at 829 (offset 40 lines). 1 out of 5 hunks FAILED -- saving rejects to file custom/conf/app.example.ini.rej ==> ERROR: A failure occurred in prepare(). Aborting...

WSDMatty commented on 2020-06-08 04:19

Cannot build package. I'm not sure what's wrong....

Output from makepkg -si

tinywrkb commented on 2020-02-27 13:17

With the latest Go release there's no need for the workaround for issue 33326 so it can be dropped for the PKGBUILD.

  # Workaround for
  export GOPATH="${srcdir}/gopath"

Archange commented on 2020-01-11 16:04

Indeed, the default path is now specified at build time (

kageru commented on 2020-01-11 14:47

I updated to PKGBUILD, and 1.12 builds fine on my end now. I also replaced the ldflags patch with the fix from the repo package as suggested by Archange.

Because of, npm/nodejs is now a makedep.

1.12 seems to have changed some behavior when not using the default data path (/var/lib/gitea), at least it did for me. I added a notice to the install script.

Archange commented on 2019-12-04 10:48

They are other changes you could do in order to simplify the PKGBUILD, just have a look at the current repo one:

tinywrkb commented on 2019-11-28 23:38

Great! Thanks.

kageru commented on 2019-11-28 18:59

Thank you. I updated the package.

tinywrkb commented on 2019-11-25 20:22

The package has two issues:

  • On the patch directives it points to the start folder which is wrong because everything in the source array is copied to $srcdir and it also breaks if the user set makepkg's BUILDDIR environment var.

  • go mod init will fail if it cannot create pkg/mod/cache/lock in GOPATH. I noticed this because my ~ is immutable. So GOPATH var is required to be set to $srcdir/gopath. This looks like a bug in Go which was solved recently so it should be fixed in the next release though I still added the workaround.

diff --git a/PKGBUILD b/PKGBUILD
index 28c2a81..813f9ae 100644
@@ -9,7 +9,7 @@

 pkgdesc='Painless self-hosted Git service. Community managed fork of Gogs.'
 arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
@@ -50,11 +50,12 @@ pkgver() {
 prepare() {
   cd ${srcdir}/${_pkgname}
   # Change default repos path for ArchLinux
-  patch -Np1 -i ../../gitea-arch-defaults.patch
+  patch -Np1 -i ../gitea-arch-defaults.patch
   # Fix LDFLAGS not being passed correctly
-  patch -Np1 -i ../../gitea-ldflags.patch
+  patch -Np1 -i ../gitea-ldflags.patch

   # Make sure we rebuild the mod file from Gopkg.toml to pick up any changes.
+  export GOPATH="${srcdir}/gopath"
   rm -f go.mod
   go mod init || true
   GOCACHE="${srcdir}/cache" go mod download