2022-02-07 20:38:34 +04:00
|
|
|
# Maintainer: Alexander "Arav" Andreev <me@arav.top>
|
|
|
|
pkgname=dwelling-upload
|
2022-02-08 23:59:47 +04:00
|
|
|
pkgver=1.0.0
|
2022-02-07 20:38:34 +04:00
|
|
|
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')
|
2022-02-08 23:59:47 +04:00
|
|
|
backup=('etc/dwelling-upload/config.yaml')
|
2022-02-07 20:38:34 +04:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|