diff --git a/community/gitea/PKGBUILD b/community/gitea/PKGBUILD index 58100f56f..bcf895b97 100644 --- a/community/gitea/PKGBUILD +++ b/community/gitea/PKGBUILD @@ -9,7 +9,7 @@ # - don't check repo signature until author puts his keys on keyservers pkgname=gitea -pkgver=1.18.0 +pkgver=1.18.1 pkgrel=1 pkgdesc="Painless self-hosted Git service, community managed." arch=(x86_64) @@ -28,7 +28,7 @@ optdepends=( ) checkdepends=(openssh) options=(!lto) -_tag=ea72465d5992f0ea7448a2268375f02c2fdf09ac # git rev-parse v${pkgver} +_tag=cb630e628eb239b1e562a3091e6ad47e377ea35d # git rev-parse v${pkgver} source=(git+https://github.com/go-gitea/gitea.git#tag=${_tag} gitea.tmpfiles gitea.service @@ -45,7 +45,6 @@ validpgpkeys=( D2CF76DA95F201E9901532AB3CDE74631F13A748 # Andrew Thornton , retrieved from https://github.com/zeripath.gpg 82A110A44DF1A28D50C093BFB853ADA5DA7BBF7A # jolheiser , retrieved from https://github.com/jolheiser.gpg ) -install=gitea.install pkgver() { cd ${pkgname} @@ -66,8 +65,8 @@ build() { export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" export CGO_LDFLAGS="${LDFLAGS}" - export EXTRA_GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" - export LDFLAGS="-X 'code.gitea.io/gitea/modules/setting.AppWorkPath=/var/lib/gitea/' -X 'code.gitea.io/gitea/modules/setting.CustomConf=/etc/gitea/app.ini'" + export EXTRA_GOFLAGS="-buildmode=pie -mod=readonly -modcacherw" + export LDFLAGS="-linkmode=external -compressdwarf=false -X 'code.gitea.io/gitea/modules/setting.AppWorkPath=/var/lib/gitea/' -X 'code.gitea.io/gitea/modules/setting.CustomConf=/etc/gitea/app.ini'" export TAGS="bindata sqlite sqlite_unlock_notify pam" make -j1 } diff --git a/community/gitea/gitea.install b/community/gitea/gitea.install deleted file mode 100644 index b252fc71c..000000000 --- a/community/gitea/gitea.install +++ /dev/null @@ -1,8 +0,0 @@ -post_upgrade() { - if [ "$(vercmp "$2" "1.15.0")" -le 0 ]; then - echo "The app.ini configuration file is not prefilled anymore. The current" - echo "one has been saved to .pacsave, you need to at least rename it before" - echo "restarting gitea. The app.example.ini file is provided for a reference" - echo "of settings." - fi -}