Date: Sunday, April 26, 2015 @ 15:12:21 Author: jlichtblau Revision: 132264
upgpkg: syncthing 0.11.1-1 Modified: syncthing/trunk/PKGBUILD ----------+ PKGBUILD | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2015-04-26 12:46:12 UTC (rev 132263) +++ PKGBUILD 2015-04-26 13:12:21 UTC (rev 132264) @@ -6,11 +6,11 @@ # Contributor: korjjj <[email protected]> pkgname=syncthing -pkgver=0.10.31 +pkgver=0.11.1 pkgrel=1 pkgdesc="Open Source Continuous Replication / Cluster Synchronization Thing" url="http://syncthing.net/" -license=('GPL3') +license=('MPLv2') arch=('i686' 'x86_64') depends=('glibc') makedepends=('git' 'go' 'godep' 'inetutils' 'sed') @@ -21,28 +21,31 @@ install=${pkgname}.install prepare() { - cd "${srcdir}" - mkdir -p "src/github.com/syncthing" - mv "${pkgname}-${pkgver}" "src/github.com/syncthing/${pkgname}" + cd "${srcdir}" + mkdir -p "src/github.com/syncthing" + mv "${pkgname}-${pkgver}" "src/github.com/syncthing/${pkgname}" } build() { - export GOPATH="${srcdir}" - cd "${srcdir}/src/github.com/syncthing/${pkgname}" - go run build.go -no-upgrade build + export GOPATH="${srcdir}" + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + go run build.go -no-upgrade build } check() { - export GOPATH="${srcdir}" - cd "${srcdir}/src/github.com/syncthing/${pkgname}" - #go run build.go -no-upgrade test + export GOPATH="${srcdir}" + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + #go run build.go -no-upgrade test } package() { - cd "${srcdir}/src/github.com/syncthing/${pkgname}" - install -Dm755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}" - install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" - install -Dm644 "etc/linux-systemd/system/${pkgname}@.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}@.service" - install -Dm644 "etc/linux-systemd/user/${pkgname}.service" "${pkgdir}/usr/lib/systemd/user/${pkgname}.service" - install -Dm644 "${srcdir}/${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" + cd "${srcdir}/src/github.com/syncthing/${pkgname}" + install -Dm755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}" + install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" + install -Dm644 "etc/linux-systemd/system/${pkgname}@.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}@.service" + install -Dm644 "etc/linux-systemd/user/${pkgname}.service" "${pkgdir}/usr/lib/systemd/user/${pkgname}.service" + install -Dm644 "${srcdir}/${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1" + +# license + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE }
