summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5855a46a0389b8bda5abe8bfe6b7ec614554845f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: axionl <axionl@aosc.io>
pkgname=filebrowser-bin
pkgver=1.5.0
pkgrel=1
pkgdesc="Web File Manager which can be used as a middleware or standalone app."
arch=('x86_64')
url="https://github.com/filebrowser/filebrowser"
license=('Apache')
depends=('glibc')
backup=('etc/filebrowser/config.json'
	'usr/share/filebrowser/storage/README.txt'
	'usr/lib/systemd/system/filebrowser.service')
source=('filebrowser.service'
        'config.json'
        'README.txt'
	'https://raw.githubusercontent.com/hacdias/filebrowser/master/LICENSE.md')

source_x86_64=(linux-amd64-filebrowser.tar.gz::https://github.com/filebrowser/filebrowser/releases/download/v$pkgver/linux-amd64-filebrowser.tar.gz)

md5sums=('8c32a68ea6e6c9079f989bf72bb37ba9'
         'd47072829df221f4ac29b9f299d964f0'
         '93513176e4f94536c504e5d5045e70f8'
         'd92e60ee98664c54f68aa515a6169708')
md5sums_x86_64=('62c40a4f5da3a6fb8ae6a596a363f4f0')

package() {
  dir="$srcdir"
  install -Dm644 filebrowser.service ${pkgdir}/usr/lib/systemd/system/filebrowser.service
  install -Dm644 config.json ${pkgdir}/etc/filebrowser/config.json
  install -Dm755 $dir/filebrowser ${pkgdir}/usr/bin/filebrowser
  install -Dm755 LICENSE.md ${pkgdir}/usr/share/licenses/filebrowser-bin/LICENSE
  install -Dm644 README.txt ${pkgdir}/usr/share/filebrowser/storage/README.txt
  cat ${pkgdir}/usr/share/filebrowser/storage/README.txt
}