PKGBUILDs/aur/logmein-hamachi/PKGBUILD

48 lines
1.9 KiB
Bash
Raw Normal View History

2012-03-22 18:05:22 +00:00
# Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
# Contributor: Lauri Niskanen <ape@ape3000.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: metzen <metzen@gmail.com>
# Contributor: WarheadsSE <max@warheads.net>
company=logmein
product=hamachi
pkgname=${company}-${product}
pkgver=2.1.0.18
pkgrel=2
plugrel=1
pkgdesc="A zero-configuration VPN service"
arch=("i686" "x86_64" "arm" "armv7")
url="https://secure.${company}.com/UK/products/${product}/"
license=("custom")
conflicts=("${product}")
replaces=("${product}")
install="${pkgname}.install"
options=("!strip")
[ "${CARCH}" == "i686" ] && filearch=x86 && sha1sums=('306e537c2dff541ace8bfbdd69514c12343f53d1')
[ "${CARCH}" == "x86_64" ] && filearch=x64 && sha1sums=('fe5e311b702205a317bd598d8029d03b36d2ffec')
[ "${CARCH}" == "arm" ] && filearch=armel && sha1sums=('98f87e9eb713bfe5605c14e0b8a5fd79371839ce')
[ "${CARCH}" == "armv7" ] && filearch=armel && sha1sums=('98f87e9eb713bfe5605c14e0b8a5fd79371839ce')
source=("https://secure.${company}.com/labs/${pkgname}-${pkgver}-${filearch}.tgz")
package() {
cd "${srcdir}"/${pkgname}-${pkgver}-${filearch}
# Directories
install -d "${pkgdir}"/opt/${pkgname}/bin
install -d "${pkgdir}"/usr/bin "${pkgdir}"/etc/rc.d
install -d "${pkgdir}"/usr/share/licenses/${pkgname}
install -m 755 ${product}d ""${pkgdir}"/opt/${pkgname}/bin"
install -m 755 dnsup ""${pkgdir}"/opt/${pkgname}/bin"
install -m 755 dnsdown ""${pkgdir}"/opt/${pkgname}/bin"
install -m 755 uninstall.sh ""${pkgdir}"/opt/${pkgname}"
install -m 444 README ""${pkgdir}"/opt/${pkgname}"
install -m 444 LICENSE ""${pkgdir}"/opt/${pkgname}"
install -m 444 CHANGES ""${pkgdir}"/opt/${pkgname}"
ln -sf "/opt/${pkgname}/bin/${product}d" ""${pkgdir}"/usr/bin/${product}"
install -m 755 "${startdir}"/${product}-init ""${pkgdir}"/etc/rc.d/${pkgname}"
# License
ln -sf "/opt/${pkgname}/LICENSE" "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}