gitea: update build

This commit is contained in:
nyyu 2022-08-01 07:48:38 +02:00
parent 61800b81e4
commit 85bb0dd771

View file

@ -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/
}