init: first commit
This commit is contained in:
commit
95958ad4c7
39
leech/PKGBUILD
Normal file
39
leech/PKGBUILD
Normal file
@ -0,0 +1,39 @@
|
||||
# Maintainer: Louis Dalibard <ontake@ontake.dev>
|
||||
_pkgbase="leech"
|
||||
pkgname="$_pkgbase-git"
|
||||
pkgver=r3.g92a0692
|
||||
pkgrel=1
|
||||
pkgdesc="A simple HTTP(S) file hosting server."
|
||||
arch=("x86_64" "armv7h" "aarch64")
|
||||
url="https://git.ontake.dev/go/leech"
|
||||
license=('GPL3')
|
||||
groups=()
|
||||
depends=()
|
||||
makedepends=('go>=1.18')
|
||||
optdepends=()
|
||||
provides=("$_pkgbase")
|
||||
conflicts=("$_pkgbase")
|
||||
replaces=()
|
||||
backup=()
|
||||
options=()
|
||||
install=
|
||||
changelog=
|
||||
source=("git+https://git.ontake.dev/go/leech")
|
||||
noextract=()
|
||||
md5sums=("SKIP") #autofill using updpkgsums
|
||||
|
||||
pkgver() {
|
||||
cd ${srcdir}/${_pkgbase}
|
||||
echo "r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_pkgbase}"
|
||||
go mod tidy
|
||||
go build
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm755 "${srcdir}/${_pkgbase}/${_pkgbase}" "${pkgdir}"/usr/bin/${_pkgbase}
|
||||
install -Dm644 "${srcdir}/${_pkgbase}/config.json" "${pkgdir}"/etc/leech/config.json
|
||||
}
|
Loading…
Reference in New Issue
Block a user