# Maintainer: Jaroslav Lichtblau # Contributor: Daniel J Griffiths pkgname=geotoad pkgver=3.27.1 pkgrel=1 pkgdesc="A tool to simplify geocaching" arch=('any') url="https://github.com/steve8x8/geotoad" license=('custom') depends=('ruby') source=($pkgname-$pkgver.tar.gz::https://github.com/steve8x8/geotoad/archive/$pkgver.tar.gz) sha256sums=('88f512f425252c9eccd2229365b8562b510cd8c1e69430aeeb827b8c10dcc1f7') package() { cd "${srcdir}"/${pkgname}-${pkgver} install -d "${pkgdir}"/usr/{bin,share/${pkgname}} cp -R * "${pkgdir}"/usr/share/${pkgname} echo -e "#!/bin/bash\n\n/usr/share/${pkgname}/geotoad.rb" > "${pkgdir}"/usr/bin/${pkgname} chmod 755 "${pkgdir}"/usr/bin/${pkgname} #license and man file install -Dm644 COPYRIGHT.txt "${pkgdir}"/usr/share/licenses/${pkgname}/COPYRIGHT.txt install -Dm644 $pkgname.1 "${pkgdir}"/usr/share/man/man1/$pkgname.1 #removing Debian specific files rm -rf "${pkgdir}"/usr/share/$pkgname/debian }