# Maintainer: Shadowigor pkgname="osync" pkgver=v1.00.r219.f70d8cd pkgrel=1 pkgdesc="A two way filesync script" arch=("any") url="https://github.com/deajan/osync" license=('custom') depends=('rsync') makedepends=('git') provides=("$pkgname") source=('git+https://github.com/deajan/osync.git#branch=stable') md5sums=('SKIP') pkgver() { cd "$srcdir/$pkgname" printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" } prepare() { cd "$pkgname" find . -type f -exec sed -i "s:/usr/local:/usr:g" {} ";" find . -type f -exec sed -i "s:/lib:/usr/lib:g" {} ";" } package() { cd "$pkgname" echo n | FAKEROOT="$pkgdir" bash ./install.sh > /dev/null }