You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
osync/packaging/ARCH/PKGBUILD

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
}