Last active
August 29, 2015 14:01
-
-
Save jasonwryan/b9164a13b0c92bd21440 to your computer and use it in GitHub Desktop.
Syncthing PKGBUILD for various architectures...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# run `updpkgsums` before `makepkg` | |
pkgname=syncthing | |
pkgver=0.8.5 | |
pkgrel=1 | |
pkgdesc="Open Source Continuous Replication / Cluster Synchronization Thing" | |
url="http://syncthing.net/" | |
license=('MIT') | |
arch=('i686' 'x86_64' 'armv6h' 'armv7h') | |
install=${pkgname}.install | |
case "$CARCH" in | |
"x86_64") _pkgarch="amd64" ;; | |
"i686") _pkgarch="386" ;; | |
"armv6h") _pkgarch="armv6" ;; | |
"armv7h") _pkgarch="armv7" ;; | |
esac | |
source=("https://github.com/calmh/${pkgname}/releases/download/v${pkgver}/${pkgname}-linux-${_pkgarch}-v${pkgver}.tar.gz" | |
"${pkgname}@.service") | |
md5sums=('68c9f84e4291e27085af2d87265ec458' | |
'50b0e42176c5cc57dc828e15f8737b8f') | |
package() { | |
cd "${srcdir}/${pkgname}-linux-${_pkgarch}-v${pkgver}" | |
install -D -m 755 syncthing "${pkgdir}/usr/bin/${pkgname}" | |
install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
install -D -m 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md" | |
install -D -m 644 "${srcdir}/${pkgname}@.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}@.service" | |
} | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment