blob: fdceff36a7c980bfccbd5cd9283c91f9b8b6d42e (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>
# Contributor: Thermi <noel[ at ] familie-kuntze.de>
# Submitter: nullie
pkgname=lsyncd
pkgver=2.3.1
pkgrel=1
pkgdesc="Live Syncing (Mirror) Daemon"
arch=(x86_64)
url="https://github.com/axkibe/lsyncd"
license=(GPL2)
depends=(
rsync
lua53
)
makedepends=(
asciidoc
cmake
)
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/lsyncd/lsyncd/archive/refs/tags/v$pkgver.tar.gz"
"lsyncd.service"
"use-lua53.patch"
)
sha256sums=(
'501f70368da8c43d3da81bf9bbb22f43dfcbc9f96b03c745842f326723c091c7'
'538072a4505abbdf8c4d16c9200810d4a2253f892a71fc16b5cd7f35ebe1ae57'
'ef55721553bdac0e3441ced58b9df1bb0d24f97513e66c12c3e94a477ba89115'
)
_archive="$pkgname-$pkgver"
prepare() {
cd "$_archive"
patch --forward --strip=1 --input="$srcdir/use-lua53.patch"
}
build() {
cd "$_archive"
cmake -B build -S . \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-Wno-dev
cmake --build build
}
package() {
cd "$_archive"
DESTDIR="$pkgdir" cmake --install build
install -Dm664 "${pkgdir}/man1/lsyncd.1" "${pkgdir}/usr/share/man/man1/lsyncd.1"
rm -rf "${pkgdir}/man1"
mkdir -p "${pkgdir}/usr/share/doc/$pkgname"
cp -r "${pkgdir}/usr/doc/examples" "${pkgdir}/usr/share/doc/$pkgname/examples"
rm -rf "${pkgdir}/usr/doc"
}
|