You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
891 B

# Maintainer: LordMZTE <lord at mzte dot de>
_pkgname=ftz
pkgname="${_pkgname}-git"
pkgver=r24.6752b62
pkgrel=1
pkgdesc="A simple file transfer program written in zig"
url="https://github.com/MasterQ32/ftz"
license=('MIT')
depends=()
makedepends=('git' 'zig-git')
arch=('any')
provides=('ftz')
conflicts=('ftz')
source=(
"git+https://github.com/MasterQ32/ftz"
)
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${_pkgname}"
git submodule update --init
}
build() {
cd "${srcdir}/${_pkgname}"
zig build -Drelease-fast=true
}
package() {
cd "${srcdir}/${_pkgname}"
zig build -p ${pkgdir}/usr -Drelease-fast=true
install -D -m644 README.md "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
#install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}