archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libnumbertext / trunk / PKGBUILD
blobe2d76f732236e386d832fedaa43c0740f4c268d5
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
3 pkgname=libnumbertext
4 pkgver=1.0.10
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=('46a5ea59789ee683c14ceb5339d7fb7d4abd956b2b838ff13d7b8e0ed9af43f1')
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