# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
pkgname=unifdef
pkgver=2.12
pkgrel=3
pkgdesc="Remove #ifdef'ed lines"
arch=(x86_64 'armv7h')
url="https://dotat.at/prog/unifdef/"
license=('GPL')
depends=()
source=("https://dotat.at/prog/unifdef/unifdef-$pkgver.tar.gz")
sha256sums=('fba564a24db7b97ebe9329713ac970627b902e5e9e8b14e19e024eb6e278d10b')
build() {
cd "$srcdir/$pkgname-$pkgver"
make clean
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
mkdir -p "$pkgdir"/usr/bin "$pkgdir"/usr/share/man/man1
install -m 0755 unifdef "$pkgdir"/usr/bin/
install -m 0755 unifdefall.sh "$pkgdir"/usr/bin/unifdefall
install -m 0644 unifdef.1 "$pkgdir"/usr/share/man/man1/
}