From 284df2a0655d85d79f83ee6838e2a0205dd5b034 Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 9 Jul 2021 08:03:24 +0200 Subject: Embed Arch Linux PKGBUILD in Source Repository --- archlinux/Makefile | 20 ++++++++++++++++++++ archlinux/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 archlinux/Makefile create mode 100644 archlinux/PKGBUILD (limited to 'archlinux') diff --git a/archlinux/Makefile b/archlinux/Makefile new file mode 100644 index 0000000..b8f8862 --- /dev/null +++ b/archlinux/Makefile @@ -0,0 +1,20 @@ +# vim: shiftwidth=4 tabstop=4 noexpandtab + +.PHONY: all clean install uninstall + +SOFTWARE_NAME="birdscan" + +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..c61ab99 --- /dev/null +++ b/archlinux/PKGBUILD @@ -0,0 +1,37 @@ + +# Maintainer: xengineering +pkgname=birdscan +pkgver=0.0.1 +pkgrel=1 +epoch= +pkgdesc="A software to take beautiful pictures of birds with a Raspberry Pi Camera" +arch=("armv7h" "x86_64") +url="https://xengineering.eu" +license=("AGPL3") +groups=() +depends=("licenses" "python") +makedepends=("go") +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=("etc/birdscan/config.json") +options=() +install= +changelog= +source=("${pkgname}.tar.gz") +noextract=() +md5sums=("SKIP") +validpgpkeys=() + +build() { + cd "$pkgname" # -$pkgver" + make all +} + +package() { + cd "$pkgname" # -$pkgver" + make install DESTDIR=$pkgdir +} + -- cgit v1.2.3-70-g09d2