summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e4e3e72cbb55b9dffe825f7f6ce5d54ce1ca41ac (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
# Maintainer: Shadowigor <shadowigorr at gmail dot com>
pkgname="osync"
pkgver=v1.3
pkgrel=1
pkgdesc="A two way filesync script"
arch=("any")
url="https://github.com/deajan/osync"
license=('custom')
depends=('rsync' 'inetutils')
makedepends=('git')
provides=("$pkgname")
conflicts=("$pkgname")
source=('git+https://github.com/deajan/osync.git#tag=v1.3')
md5sums=('SKIP')

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 | bash ./install.sh --prefix="$pkgdir" > /dev/null
}