debian-packages/debhelper/dufs-bin/debian/rules
2024-06-16 17:06:37 +08:00

26 lines
525 B
Makefile
Executable file

#!/usr/bin/make -f
VERSION=0.41.0
ARCHITECTURE=amd64
PACKAGE_NAME=dufs
DOWNLOAD_NAME=dufs-v$(VERSION)-x86_64-unknown-linux-musl.tar.gz
DOWNLOAD_URL=https://github.com/sigoden/dufs/releases/download/v$(VERSION)/$(DOWNLOAD_NAME)
%:
dh "$@"
leafee98_truncate_changelog:
rm --force debian/changelog
debchange --create \
--package $(PACKAGE_NAME) \
--newversion $(VERSION) \
"Auto build"
leafee98_prepare:
curl --location \
--show-error \
--output $(DOWNLOAD_NAME) \
$(DOWNLOAD_URL)
tar -xf $(DOWNLOAD_NAME)