From d024138593f1486cc3d879dc41a2a38708a8fe5c Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 7 Feb 2022 20:38:34 +0400 Subject: [PATCH] Add Arhlinux's PKGBUILD. --- build/archlinux/PKGBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 build/archlinux/PKGBUILD diff --git a/build/archlinux/PKGBUILD b/build/archlinux/PKGBUILD new file mode 100644 index 0000000..abe728f --- /dev/null +++ b/build/archlinux/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Alexander "Arav" Andreev +pkgname=dwelling-upload +pkgver=0.0.1 +pkgrel=1 +pkgdesc="Arav's Dwelling / Upload" +arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') +url="https://git.arav.top/Arav/dwelling-upload" +license=('MIT') +source=('git+https://git.arav.top/Arav/dwelling-upload.git') +md5sums=('SKIP') +makedepends=('go') +backup=('etc/config.yaml') + +build() { + cd "$srcdir/$pkgname" + make DESTDIR="$pkgdir/" +} + +package() { + cd "$srcdir/$pkgname" + make DESTDIR="$pkgdir/" install + make DESTDIR="$pkgdir/" install-service +} + +post_install() { + groupadd -r dwupload + useradd -rMl -g dwupload dwupload + mkdir -m0770 -p $pkgdir/var/log/dwelling-upload + chown dwupload:dwupload $pkgdir/var/log/dwelling-upload +} \ No newline at end of file