diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-03 17:09:02 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-03 17:25:33 +0000 |
commit | 8f50d23b8c9d1f27eb884b2c2a1f6ac3865c0965 (patch) | |
tree | 0bb91d1182b635e039b376100cb747bf1880196d /main/lsyncd | |
parent | 26dec7860a5530d2d1357f2ad885137a0be02149 (diff) | |
download | aports-8f50d23b8c9d1f27eb884b2c2a1f6ac3865c0965.tar.bz2 aports-8f50d23b8c9d1f27eb884b2c2a1f6ac3865c0965.tar.xz |
main/lsyncd: upgrade to 2.2.2, modernize APKBUILD
Diffstat (limited to 'main/lsyncd')
-rw-r--r-- | main/lsyncd/APKBUILD | 36 |
1 files changed, 7 insertions, 29 deletions
diff --git a/main/lsyncd/APKBUILD b/main/lsyncd/APKBUILD index f2ad2e04fb..9bf62bb13a 100644 --- a/main/lsyncd/APKBUILD +++ b/main/lsyncd/APKBUILD @@ -1,64 +1,42 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=lsyncd -pkgver=2.2.1 +pkgver=2.2.2 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="" +options="!check" 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 + -DINSTALL_MANDIR=/usr/share + make } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install mkdir -p "$pkgdir/etc/lsyncd" cp "$builddir"/examples/*.lua \ "$pkgdir"/etc/lsyncd/ install -Dm755 "$srcdir/$pkgname.initd" \ - "$pkgdir/etc/init.d/$pkgname" || return 1 + "$pkgdir/etc/init.d/$pkgname" } -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 +sha512sums="489d4fc91787a53f1480749fce6a281406aedb7e3617cd5f383b30c47870b2a8a912317a3faee5ad5f6358c10a136a69e07ee854f753846be1e11023cea5fed0 lsyncd-2.2.2.tar.gz 2cebaf59d960321c2eda4ef1e0d850f62eb7eedb7ba8922a5db33a7f78c769d1a52839fbb597ae06ba576632e2abc7b92a6ba2eaf58b71b93bc877db83e25576 fix-realpath.patch 00508996b83297fd069bd4580581859d5ef696ec906a2011d62f2582630c7d98188a851490f5503ba1302ef34f56e6b36780a1ce00806dbeeb62421e2ef8283d fix-mandir.patch d0f971e99726fd5b7157928f4c790b9aeaf05becd23a2898101b89567297816c866b13cddb8b91cbe87cf3e0c05e3a613896c28f2926269c21f4f857ce1de189 lpostcmd.patch |