Want more features on Pastebin? Sign Up, it's FREE!
Guest

hamachi pkg build

By: a guest on Apr 24th, 2014  |  syntax: None  |  size: 1.95 KB  |  views: 65  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
  2. # Contributor: Lauri Niskanen <ape@ape3000.com>
  3. # Contributor: Andrea Scarpino <andrea@archlinux.org>
  4. # Contributor: metzen <metzen@gmail.com>
  5.  
  6. pkgname=logmein-hamachi
  7. pkgver=2.1.0.119
  8. pkgrel=1
  9. pkgdesc="A zero-configuration VPN service"
  10. arch=("i686" "x86_64" "arm" "armv7h")
  11. url="https://secure.logmein.com/AU/labs/#HamachiforLinux"
  12. license=("custom")
  13. conflicts=("hamachi")
  14. replaces=("hamachi")
  15. options=("!strip")
  16. [ "${CARCH}" == "i686" ] && filearch=x86 && sha1sums=('1973dec2d7280af384828f15d43717dd2053280b')
  17. [ "${CARCH}" == "x86_64" ] && filearch=x64 && sha1sums=('a4706e9075859ae771ca05344c175f3f6b426448')
  18. [ "${CARCH}" == "arm" ] && filearch=armel && sha1sums=('7b147c9e8b232d196a04ccaec10b0eba0ee60c8a')
  19. [ "${CARCH}" == "armv7h" ] && filearch=armhf && sha1sums=('34ca84dc3343019ca2a478857b98327cb53e8506')
  20.  
  21. source=("https://secure.logmein.com/labs/${pkgname}-${pkgver}-${filearch}.tgz")
  22.  
  23. package() {
  24.         cd "${srcdir}"/${pkgname}-${pkgver}-${filearch}
  25.  
  26.         # Directories
  27.         install -d "${pkgdir}"/opt/${pkgname}/bin
  28.         install -d "${pkgdir}"/usr/bin "${pkgdir}"/usr/lib/systemd/system
  29.         install -d "${pkgdir}"/usr/share/licenses/${pkgname}
  30.  
  31.         # Files
  32.         install -m 755 hamachid "${pkgdir}"/opt/${pkgname}/bin
  33.         install -m 755 dnsup "${pkgdir}"/opt/${pkgname}/bin
  34.         install -m 755 dnsdown "${pkgdir}"/opt/${pkgname}/bin
  35.         install -m 755 uninstall.sh "${pkgdir}"/opt/${pkgname}
  36.         install -m 444 README "${pkgdir}"/opt/${pkgname}
  37.         install -m 444 LICENSE "${pkgdir}"/opt/${pkgname}
  38.         install -m 444 CHANGES "${pkgdir}"/opt/${pkgname}
  39.         ln -sf "/opt/${pkgname}/bin/hamachid" "${pkgdir}"/usr/bin/hamachi
  40.         install -m 644 "${startdir}"/systemd "${pkgdir}"/usr/lib/systemd/system/${pkgname}.service
  41.  
  42.         # License
  43.         ln -sf "/opt/${pkgname}/LICENSE" "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
  44. }
clone this paste RAW Paste Data