diff --git a/.SRCINFO b/.SRCINFO index fb2b71e2ae97..7726bba2d8ee 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,5 +1,5 @@ pkgbase = dirsync - pkgdesc = Directory Synchronizer this utility take two argument the source directory and the destination and make recursively the two directories identical + pkgdesc = This utility take two directory paths as arguments and makes them recursively identical pkgver = 1.11 pkgrel = 1 url = http://www.viara.eu/en/dirsync.htm diff --git a/PKGBUILD b/PKGBUILD index f8ce51853b27..75ee92154b91 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -4,23 +4,30 @@ pkgname=dirsync pkgver=1.11 -origver=1_11 pkgrel=1 -pkgdesc="Directory Synchronizer this utility take two argument the source directory and the destination and make recursively the two directories identical" +pkgdesc="This utility take two directory paths as arguments and makes them recursively identical" arch=('i686' 'x86_64') url="http://www.viara.eu/en/dirsync.htm" license=('unknown') -source=(http://www.viara.eu/download/$pkgname-$origver.tar.gz) +source=(http://www.viara.eu/download/$pkgname-1_11.tar.gz) md5sums=('2eb3745f674fb71047ca4e64110ceb68') -build() { - cd ${srcdir} +prepare() { + cd "${srcdir}" - install -d ${pkgdir}/usr/bin || return 1 - rm $pkgname || return 1 - - make linux || return 1 - sed -i 's|/usr/local|/usr/share|g' makefile || return 1 - make DESTDIR=${pkgdir} install || return 1 + install -d "${pkgdir}"/usr/bin + rm $pkgname } +build() { + cd "${srcdir}" + + make linux +} + +package() { + cd "${srcdir}" + + sed -i 's|/usr/local|/usr/share|g' makefile + make DESTDIR="${pkgdir}" install +}