From fc1c44f7368743809994dcfa1e84443bbde7e083 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 3 Sep 2021 10:29:42 +0200 Subject: Implement Arch Linux Packaging --- archlinux/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 archlinux/Makefile (limited to 'archlinux/Makefile') diff --git a/archlinux/Makefile b/archlinux/Makefile new file mode 100644 index 0000000..9809294 --- /dev/null +++ b/archlinux/Makefile @@ -0,0 +1,18 @@ +# vim: shiftwidth=4 tabstop=4 noexpandtab +.PHONY: all clean install uninstall + +SOFTWARE_NAME="xbackup" + +all: + tar --exclude-vcs --exclude ${SOFTWARE_NAME}/archlinux -czvf ${SOFTWARE_NAME}.tar.gz ../../${SOFTWARE_NAME} + makepkg -cf + +clean: + rm -rf $(SOFTWARE_NAME).tar.gz + rm -rf $(SOFTWARE_NAME)*.pkg.tar.* + +install: all + sudo pacman -U $(SOFTWARE_NAME)*.pkg.tar.* + +uninstall: + sudo pacman -R $(SOFTWARE_NAME) -- cgit v1.2.3-70-g09d2