# $Id: PKGBUILD 107291 2014-03-16 16:05:59Z lfleischer $
# Maintainer (Arch): Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor (Arch): Laurent Carlier <lordheavym@gmail.com>
# Contributor (Arch): DsTr <dstr@gmail.com>
# Contributor (Arch): Allan McRae <allan@archlinux.org>
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Gaming4JC <gaming4jc2@yahoo.com>

_pkgname=winetricks
pkgname=winetricks-libre
pkgver=1.0
pkgrel=1
pkgdesc='Script to install various redistributable runtime libraries in Wine (a libre fork of winetricks)'
url='https://github.com/g4jc/winetricks-libre'
license=('LGPL')
arch=('any')
replaces=($_pkgname)
conflicts=($_pkgname)
provides=($_pkgname)
optdepends=('zenity: GUI for GNOME desktop'
            'kdebase-kdialog: GUI for KDE desktop')
source=("https://github.com/g4jc/${pkgname}/archive/${pkgver}.tar.gz")
md5sums=('aec9a4c60f793b25bd9df79e3c336994')

package() {
  depends=('wine' 'cabextract' 'unzip' 'xorg-xmessage')

  install -Dm755 "${srcdir}/${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
  ln -sv ${pkgname} "${pkgdir}/usr/bin/${_pkgname}"
}