Package Details: gitea-git v1.19.0_dev_286_g477a1cc40e-1

Git Clone URL: https://aur.archlinux.org/gitea-git.git (read-only, click to copy)
Package Base: gitea-git
Description: Painless self-hosted Git service. Community managed fork of Gogs.
Upstream URL: https://gitea.io/
Keywords: git
Licenses: MIT
Conflicts: gitea
Provides: gitea
Submitter: francoism90
Maintainer: kageru
Last Packager: kageru
Votes: 7
Popularity: 0.000000
First Submitted: 2016-11-15 09:57 (UTC)
Last Updated: 2023-01-11 19:12 (UTC)

Dependencies (10)

Required by (3)

Sources (5)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

kageru commented on 2019-11-28 18:59 (UTC)

Thank you. I updated the package.

tinywrkb commented on 2019-11-25 20:22 (UTC)

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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@

 _pkgname='gitea'
 pkgname=gitea-git
-pkgver=v1.11.0_dev_43_g05e437f8f
+pkgver=v1.11.0_dev_330_gf5bd0884d
 pkgrel=1
 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

SamWhited commented on 2019-02-01 14:12 (UTC)

Hi all, I'm no longer using Gitea for any projects, so I am going to disown this package so that someone who's actually using it and will see when problems crop up can maintain it.

SamWhited commented on 2018-12-23 13:31 (UTC)

oops, you're quite right. Thanks!

Archange commented on 2018-12-23 10:04 (UTC)

Note, you can drop https://aur.archlinux.org/cgit/aur.git/tree/02-adjust-service.patch?h=gitea-git from the tree. ;)

I’ve updated the wiki page regarding default paths/user.

SamWhited commented on 2018-12-13 16:02 (UTC)

Thanks; I've updated this package to match. It now uses the gitea user.

Archange commented on 2018-12-13 00:25 (UTC)

Pushed.

Archange commented on 2018-12-12 19:46 (UTC)

We had some issues figuring out all the required steps during migration. I think that I’ve pinned them all now, will push to [community-testing] tonight.

francoism90 commented on 2018-12-12 14:06 (UTC)

@ArchangeGabriel Any news? I also used a separated user for this package, I don't want the git to be hacked.