4.10.3-2: add gtktreeviewmodel fixes
[arch-packages.git] / libnumbertext / trunk / PKGBUILD
blob27abebb366eda5f67a3c7823a11f10570f0cd836
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
3 pkgname=libnumbertext
4 pkgver=1.0.11
5 pkgrel=1
6 pkgdesc="Number to number name and money text conversion library"
7 arch=('x86_64')
8 url="https://github.com/Numbertext/libnumbertext"
9 license=('LGPL3' 'custom')
10 depends=('gcc-libs')
11 source=(${pkgname}-${pkgver}::https://github.com/Numbertext/libnumbertext/archive/$pkgver.tar.gz)
12 sha256sums=('80aad7cab123edc614f904d9f145d1d15cf465084a1a15fca2117525dc746034')
14 prepare() {
15   cd "$pkgname-$pkgver"
16   autoreconf -vfi
19 build() {
20   cd "$pkgname-$pkgver"
21   ./configure --prefix=/usr
22   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
23   make
26 check() {
27   cd "$pkgname-$pkgver"
28   make -k check
31 package() {
32   cd "$pkgname-$pkgver"
33   make DESTDIR="$pkgdir/" install
34   # add dual license file
35   install -Dt "${pkgdir}"/usr/share/licenses/${pkgname} -m644 COPYING