summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1857819fcd2c29aa3d5dc641bc3d4a157924bce1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Tyler Johnson <mail@tyler-johnson.ca>
pkgname=fdic
pkgver=1.0.8
pkgrel=1
epoch=
pkgdesc="Dictionary filter for STDIN"
arch=('x86_64')
_reponame="dictionary-filter"
url="https://github.com/tejohnso/$_reponame"
license=('GPL')
groups=()
depends=('gcc-libs')
source=("https://github.com/tejohnso/dictionary-filter/archive/$pkgver.tar.gz")
md5sums=("SKIP")

build() {
	cd "$_reponame-$pkgver"
  g++ -O3 -std=c++17 -Wall -o fdic fdic.cpp dictionary.cpp
}

check() {
	cd "$_reponame-$pkgver"
  file -E fdic
}

package() {
	cd "$_reponame-$pkgver"
  install -D fdic "$pkgdir/usr/bin/fdic"
  sed -i "s/VERSION/$pkgver/g" fdic.1
  install -Dm644 fdic.1 "$pkgdir/usr/local/man/man1/fdic.1"
}