blob: 456e715ee3d83455c64eb106d4685848a3fa5ccb (
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
35
36
37
38
39
40
41
42
|
# Maintainer: krumelmonster <krumelmonster@zoho.com>
pkgname=fileshelter
pkgver=6.2.0
pkgrel=1
pkgdesc="A self-hosted software to share files over the Web"
arch=('x86_64')
url="https://github.com/epoupon/fileshelter"
license=('GPL')
depends=('wt' 'libzip' 'libconfig')
makedepends=('boost')
source=("https://github.com/epoupon/fileshelter/archive/v$pkgver.tar.gz"
"fileshelter.sysusers"
"fileshelter.tmpfiles")
sha256sums=('6a672a860ac01dbf8bc5c2b8c170e6087bad69a5a7f39c2022b803c8f0629995'
'886d3e08bd72b279f81b6ddbad2b7da00b746566aed4ea8a63baae3bdc4ccfd1'
'bd578276480969f7c006e7ed51708a7484bd901060b83d2e7aa0b0a22f88c185')
prepare() {
cd $pkgname-$pkgver
}
build() {
cd $pkgname-$pkgver
mkdir build || true
cd build
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
..
make
}
package() {
cd $pkgname-$pkgver/build
make DESTDIR="$pkgdir/" install
install -Dm640 "$pkgdir/usr/share/fileshelter/fileshelter.conf" "$pkgdir/etc/fileshelter.conf"
install -Dm644 "$pkgdir/usr/share/fileshelter/default.service" "$pkgdir/usr/lib/systemd/system/fileshelter.service"
rm "$pkgdir/usr/share/fileshelter/default.service"
install -Dm644 "${srcdir}/$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
install -Dm644 "${srcdir}/$pkgname.tmpfiles" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
}
|