summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c7d346cb05bb1e3108b4a37ee4484ee096d9cbc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: yadieet <yadieet@gmail.com>

pkgname=terbilang
pkgver=2.0
pkgrel=5
pkgdesc="Number-To-Text / Number-To-Words  converter utility for Bahasa Indonesia or Indonesian Rupiah (IDR) currency."
url="https://github.com/yadieet/c-programming-examples/tree/master/terbilang"
license=('GPL3')
source=("terbilang-$pkgver.c::https://raw.githubusercontent.com/yadieet/c-programming-examples/0fe2faaa614308003100a6b9fbb97eedbf61b6b2/terbilang/terbilang.c")
sha256sums=('263750fdd42e0b4c6f1cc2eff2becf6b0b12cc874eb1b559135402df90c56f43')
arch=('x86_64')
depends=('gmp')

build() {
	cd "$srcdir"
	gcc -Wall -Wextra -std=c11 -pedantic -o "ysa-terbilang" "terbilang-$pkgver.c" -lgmp
}

package() {
	cd "$srcdir"
  	install -D -m755 ysa-terbilang ${pkgdir}/usr/bin/ysa-terbilang
}