feat: add config

This commit is contained in:
Louis Dalibard 2024-04-27 13:40:41 +02:00
parent 95958ad4c7
commit 68ce04def9

View File

@ -1,7 +1,7 @@
# Maintainer: Louis Dalibard <ontake@ontake.dev>
_pkgbase="leech"
pkgname="$_pkgbase-git"
pkgver=r3.g92a0692
pkgver=r4.gcc19a48
pkgrel=1
pkgdesc="A simple HTTP(S) file hosting server."
arch=("x86_64" "armv7h" "aarch64")
@ -35,5 +35,7 @@ build() {
package() {
install -Dm755 "${srcdir}/${_pkgbase}/${_pkgbase}" "${pkgdir}"/usr/bin/${_pkgbase}
install -Dm644 "${srcdir}/${_pkgbase}/config.json" "${pkgdir}"/etc/leech/config.json
install -Dm644 "${srcdir}/${_pkgbase}/pkg/config.json" "${pkgdir}"/etc/leech/config.json
install -Dm644 "${srcdir}/${_pkgbase}/pkg/leech.service" "${pkgdir}"/usr/lib/systemd/system/leech.service
install -Dm644 "${srcdir}/${_pkgbase}/pkg/sysusers.conf" "${pkgdir}"/usr/lib/sysusers.d/${_pkgbase}.conf
}