archrelease: copy trunk to staging-x86_64
[arch-packages.git] / aiksaurus / trunk / PKGBUILD
blob96e30aa9739935785c71f7900b89f1f2257bbe71
1 # Maintainer: Ronald van Haren <ronald.archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
4 pkgname=aiksaurus
5 pkgver=1.2.1
6 pkgrel=9
7 pkgdesc="A cross-platform, open-source thesaurus"
8 url="http://aiksaurus.sourceforge.net/"
9 license=('GPL')
10 arch=('x86_64')
11 depends=('gcc-libs')
12 source=(https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
13         aiksaurus-gcc44.patch
14         format-security.patch)
15 sha512sums=('48591850f28f1a8f4b4986df14090ef7bd57cbfbad739cb0013db021f6f5bcb3c592b38e36774735499e27b9e99330504f8d9c6022158e25469cbc81d13f7463'
16             '66db53f7499425eb1ff572df4a674f378ed681edeb48ea5926b21d39c8a399c36740e03de101e23a47e043fcce29f66a03c64dc813dc5beda1043d0057711fa5'
17             '72ebdc63cbb2c56bd8274f92501cbbae8c66e7d81b11b8fdeda38149da4bf44ab88699d248093eedc9813f6cd60e2a1f360fb39d778b4b7827777b1d003ab1dc')
19 prepare() {
20   cd $pkgname-$pkgver
21   patch -p1 < ../format-security.patch
22   patch -p0 < ../aiksaurus-gcc44.patch
25 build() {
26   cd ${pkgname}-${pkgver}
28   export CXXFLAGS+=' -std=c++14'
29   ./configure --prefix=/usr
30   make
33 package() {
34   cd ${pkgname}-${pkgver}
35   make DESTDIR="${pkgdir}" install