From 85bb0dd7718e306987e8be12a4b493e0460141b2 Mon Sep 17 00:00:00 2001 From: nyyu Date: Mon, 1 Aug 2022 07:48:38 +0200 Subject: [PATCH] gitea: update build --- gitea/PKGBUILD | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gitea/PKGBUILD b/gitea/PKGBUILD index 2d254cb..9439e11 100644 --- a/gitea/PKGBUILD +++ b/gitea/PKGBUILD @@ -43,12 +43,12 @@ validpgpkeys=( install=gitea.install prepare() { - cd ${srcdir} + cd ${srcdir}/gitea-src-${pkgver} make deps } build() { - cd ${srcdir} + cd ${srcdir}/gitea-src-${pkgver} export CGO_CPPFLAGS="${CPPFLAGS}" export CGO_CFLAGS="${CFLAGS}" export CGO_CXXFLAGS="${CXXFLAGS}" @@ -60,16 +60,16 @@ build() { } check() { - cd ${srcdir} + cd ${srcdir}/gitea-src-${pkgver} make test } package() { - cd ${srcdir} + cd ${srcdir}/gitea-src-${pkgver} install -Dm755 ${pkgname} -t "${pkgdir}"/usr/bin/ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/ - install -Dm644 ${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/ - install -Dm644 ${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf - install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf + install -Dm644 ../${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/ + install -Dm644 ../${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf + install -Dm644 ../${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf install -D custom/conf/app.example.ini -t "${pkgdir}"/etc/gitea/ }