diff options
author | xengineering <me@xengineering.eu> | 2021-09-03 10:29:42 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2021-09-03 10:30:22 +0200 |
commit | fc1c44f7368743809994dcfa1e84443bbde7e083 (patch) | |
tree | 22a8c37c016ec499a542cc828e9b638783f41b8d | |
parent | f2f01dd3e122c82a3768b4c7c3c8d6fe75913d9a (diff) | |
download | xbackup-fc1c44f7368743809994dcfa1e84443bbde7e083.tar xbackup-fc1c44f7368743809994dcfa1e84443bbde7e083.tar.zst xbackup-fc1c44f7368743809994dcfa1e84443bbde7e083.zip |
Implement Arch Linux Packaging
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | archlinux/Makefile | 18 | ||||
-rw-r--r-- | archlinux/PKGBUILD | 41 |
3 files changed, 60 insertions, 0 deletions
@@ -1,4 +1,5 @@ # vim: shiftwidth=4 tabstop=4 noexpandtab + DESTDIR="" # leave empty for the current system or provide a fakeroot here PREFIX="/usr" 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) diff --git a/archlinux/PKGBUILD b/archlinux/PKGBUILD new file mode 100644 index 0000000..b77f4e0 --- /dev/null +++ b/archlinux/PKGBUILD @@ -0,0 +1,41 @@ + +# Maintainer: xengineering <me@xengineering.eu> +pkgname=xbackup +pkgver=0.0.1 +pkgrel=1 +epoch= +pkgdesc='Convenience wrapper around the Borg backup tool' +arch=('any') +url='https://xengineering.eu' +license=('GPL3') +groups=() +depends=('licenses' 'python' 'borg') +makedepends=() +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=('etc/xbackup/config.json') +options=() +install= +changelog= +source=("${pkgname}.tar.gz") +noextract=() +md5sums=('SKIP') +validpgpkeys=() + +build() { + #./configure --prefix=/usr + cd ${pkgname} + make all +} + +#check() { +# make -k check +#} + +package() { + cd ${pkgname} + make DESTDIR="${pkgdir}" install +} |