2
0
mirror of https://github.com/deajan/osync synced 2024-11-19 03:25:37 +00:00
osync/packaging/ARCH/PKGBUILD
2016-08-29 18:46:04 +02:00

33 lines
719 B
Bash

# Maintainer: Shadowigor <shadowigorr at gmail dot com>
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
}