# $Id: PKGBUILD 333645 2018-05-31 01:00:37Z felixonmars $
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Mauro Andreolini <mauro.andreolini@unimore.it>

pkgname=findmyhash
pkgver=1.1.2
pkgrel=5
pkgdesc="Crack different types of hashes using free online services"
arch=('any')
url="https://code.google.com/archive/p/findmyhash/"
license=('GPL3')
depends=('python2-httplib2')
source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/findmyhash/${pkgname}_v${pkgver}.py")
sha512sums=('19aeec248a7512a6b4789b4ab9e3732dbba7a237f6836df2737d3c5f7a8d5efa47dbaebcb28eb9b85acb1c47e3b2a178103460abcbfe1af646b3daedf7f7786b')

prepare() {
  sed -i '1i#!/usr/bin/env python2' ${pkgname}_v${pkgver}.py
}

package() {
  install -Dm755 ${pkgname}_v${pkgver}.py ${pkgdir}/usr/bin/${pkgname}
}

# vim:set ts=2 sw=2 et:
