# Maintainer: Ashymad pkgname=sfk _version=1.9.0 _revision=0 pkgver=${_version}.${_revision} pkgrel=1 pkgdesc="Swiss File Knife - A Command Line Tools Collection" arch=('x86_64') url="http://stahlworks.com/dev/swiss-file-knife.html" license=('BSD') depends=('gcc-libs') makedepends=() source=("https://sourceforge.net/projects/swissfileknife/files/1-swissfileknife/${pkgver}/sfk-${_version}.tar.gz") sha256sums=('ee089f68ada9454bc610cb6b3f613efcc3bdcb7da911f9e35d749e091895f0b8') prepare() { cd "$pkgname-$_version" sed -i 's/typedef long long int64_t;//g' ./sfkmatch.hpp sed -i 's/#define bool unsigned char//g' ./sfkbase.hpp } build() { cd "$pkgname-$_version" ./configure --prefix=/usr make } package() { cd "$pkgname-$_version" make DESTDIR="$pkgdir/" install install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }