desktop/syncthing/PKGBUILD

57 lines
2.1 KiB
Bash
Raw Normal View History

pkgname=syncthing
2017-04-26 06:45:13 +08:00
pkgver=0.14.27
2015-08-23 22:03:33 +08:00
pkgrel=1
pkgdesc="Open Source Continuous Replication / Cluster Synchronization Thing"
url="http://syncthing.net/"
2015-05-12 01:23:48 +08:00
license=('MPLv2')
arch=('x86_64')
screenshot='http://syncthing.net/screenshot.jpg'
depends=('glibc')
2015-05-09 00:03:55 +08:00
makedepends=('go' 'inetutils' 'sed')
2015-05-12 01:23:48 +08:00
source=("$pkgname-$pkgver::https://github.com/syncthing/syncthing/releases/download/v${pkgver}/syncthing-source-v${pkgver}.tar.gz"
"syncthing.1"
2015-05-09 00:03:55 +08:00
"syncthing.desktop"
2016-05-10 06:03:07 +08:00
"syncthing.svg")
2017-04-26 06:45:13 +08:00
sha256sums=('23ff663f4110813ec46119202d89eccc60b7ca5bb065c58a7f07dcd53bd879fb'
2016-01-05 04:09:49 +08:00
'47913f9d2df6d1e240cbc7ecf04be7fb597ec6382052960a237d1230436b5932'
'd240ae741cf30f4e6559d16a50c62da928557a0c8567600875a770d15e53daf4'
2016-05-10 06:03:07 +08:00
'483bbf0b23732b3b0dfb946be386e900ee7b6bfc14faede1fe4b74df6f2df0c6')
2016-01-05 04:09:49 +08:00
2015-05-09 00:03:55 +08:00
install=${pkgname}.install
prepare() {
cd "${srcdir}"
mkdir -p "src/github.com/syncthing"
2015-05-12 01:23:48 +08:00
mv "${pkgname}" "src/github.com/syncthing/${pkgname}"
}
build() {
export GOPATH="${srcdir}"
cd "${srcdir}/src/github.com/syncthing/${pkgname}"
go run build.go -no-upgrade build
}
2015-05-22 05:39:40 +08:00
check() {
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 -D -m 755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}"
install -D -m 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -D -m 644 "etc/linux-systemd/system/${pkgname}@.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}@.service"
install -D -m 644 "etc/linux-systemd/user/${pkgname}.service" "${pkgdir}/usr/lib/systemd/user/${pkgname}.service"
install -D -m 644 "${srcdir}/${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
2015-05-22 05:39:40 +08:00
# license
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
# Desktop icon
install -Dm644 "${srcdir}/${pkgname}.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop"
2016-05-10 06:03:07 +08:00
install -Dm644 "../../../../syncthing.svg" "$pkgdir/usr/share/pixmaps/${pkgname}.svg"
}