aboutsummaryrefslogtreecommitdiffstats
path: root/main/lsyncd/APKBUILD
blob: f2ad2e04fbc7970c0ef288738fdebbbcc6bdacd7 (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
63
64
65
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lsyncd
pkgver=2.2.1
pkgrel=0
pkgdesc="Live Syncing (Mirror) Daemon"
url="https://github.com/axkibe/lsyncd"
arch="all"
license="GPLv2+"
depends="rsync"
depends_dev=
makedepends="$depends_dev cmake lua lua-dev"
install=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/axkibe/lsyncd/archive/release-$pkgver.tar.gz
	fix-realpath.patch
	fix-mandir.patch
	lpostcmd.patch

	$pkgname.initd"

builddir="$srcdir"/lsyncd-release-$pkgver
prepare() {
	local i
	cd "$builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$builddir"
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
		-DINSTALL_MANDIR=/usr/share || return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
	mkdir -p "$pkgdir/etc/lsyncd"
	cp "$builddir"/examples/*.lua \
		"$pkgdir"/etc/lsyncd/
	install -Dm755 "$srcdir/$pkgname.initd" \
		"$pkgdir/etc/init.d/$pkgname" || return 1
	
}

md5sums="4dba61af8d7c8c84aacf900ab8145fa7  lsyncd-2.2.1.tar.gz
a14565df7274ebd0b605301ca39ae885  fix-realpath.patch
e693914425c200f7be5732787ae8fb69  fix-mandir.patch
77a42725c786745a67d5435bf9978ad5  lpostcmd.patch
7cb590c3565043e68ff79b1a23252978  lsyncd.initd"
sha256sums="f41969454a17f9441a9b1809bb251235631768393bf5d29ad8e8142670ae4735  lsyncd-2.2.1.tar.gz
26454c77bb005c165c10b05b232c587669d35ab98e0ac889a11923106126f98e  fix-realpath.patch
e3be73be4e089c813935e81b7cb7d360323a1098f6fe220b2a07ad667462f39f  fix-mandir.patch
1cf732eefa4be22e1a86bbd85aad5ac0903ebf5d99f97e02b233341297ed7e2c  lpostcmd.patch
0b7fc548b257cbd7264e3eb13d597bff1c25b63b2c3a2669607bb609d048810d  lsyncd.initd"
sha512sums="c07c322fb802911a2bb78221ff20ac1c0658cea27a23d34a95de45902211784d3bdc79c246ce0809e6167ddd20a3573c1ca6a81cabc46a29622a200c8d3ddfa5  lsyncd-2.2.1.tar.gz
2cebaf59d960321c2eda4ef1e0d850f62eb7eedb7ba8922a5db33a7f78c769d1a52839fbb597ae06ba576632e2abc7b92a6ba2eaf58b71b93bc877db83e25576  fix-realpath.patch
00508996b83297fd069bd4580581859d5ef696ec906a2011d62f2582630c7d98188a851490f5503ba1302ef34f56e6b36780a1ce00806dbeeb62421e2ef8283d  fix-mandir.patch
d0f971e99726fd5b7157928f4c790b9aeaf05becd23a2898101b89567297816c866b13cddb8b91cbe87cf3e0c05e3a613896c28f2926269c21f4f857ce1de189  lpostcmd.patch
441b76ec944d9d74100dfca55efe871e9092b37cd49ec79a2a94e281dc0326b4def1645a827f7d3edcddc95d6e74c99621b62991396fb3693b1832c42fd86cdc  lsyncd.initd"