db-move: moved linux-zen from [testing] to [extra] (x86_64)
[arch-packages.git] / aspell / trunk / PKGBUILD
blob34a46c9f338557384e4b17759f6b3e2c9438d58a
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Jochem Kossen <j.kossen@home.nl>
3 # Contributor: dorphell <dorphell@archlinux.org>
4 # Contributor: Thayer Williams <thayer@archlinux.org>
5 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
7 pkgname=aspell
8 pkgver=0.60.8
9 _pkgmajorver=0.60
10 pkgrel=3
11 pkgdesc="A spell checker designed to eventually replace Ispell"
12 arch=('x86_64')
13 url="http://aspell.net/"
14 license=('LGPL')
15 depends=('gcc-libs' 'ncurses')
16 optdepends=('perl: to import old dictionaries')
17 provides=(libaspell.so libpspell.so)
18 source=(
19   "https://github.com/GNUAspell/aspell/archive/rel-$pkgver.tar.gz"
20   $pkgname-0.60.8-CVE-2019-25051.patch::https://github.com/gnuaspell/aspell/commit/0718b375425aad8e54e1150313b862e4c6fd324a.patch
22 sha512sums=('b7ca2ed063f003581020d2043b1686915997261695bb0aef6e530431ea55781861ba19e16ce1fb74eb892203c9433c8652d105d380c0a6a24590f13fb1a401be'
23             '529f3f4737d2e19f7571f4c8666b1cd089cc4e9dfdaa52dc468919f01ce9f8f8112d8fe8afda295b3dfb92f5e0c2bbd79bf1ec69f06c163c32eb28f0168ab263')
24 b2sums=('c8e0006304aff0d14d230cba1e79ace43041d6fbe15a8b2f3148b9bf2f9ec40dc61c03d9f8e45e0cacde50e45d5a8ff2e949a8d26bbd83f7f53ced9b7480bcaf'
25         'b181caf27feae7eae908c92496a5f05f7e7f1f1a089c460b757c2f745b97f5339d4c8e13cf851e704cff7952c5dcd5ad0a8496ec1ae45c1e83fb1fa577134c63')
27 prepare() {
28   # fix CVE-2019-25051: https://bugs.archlinux.org/task/71554
29   patch -Np1 -d $pkgname-rel-$pkgver -i ../$pkgname-0.60.8-CVE-2019-25051.patch
31   cd $pkgname-rel-$pkgver
32   PERL_USE_UNSAFE_INC=1 ./autogen
35 build() {
36   cd $pkgname-rel-$pkgver
37   ./configure --prefix=/usr --sysconfdir=/etc
39   # prevent excessive overlinking due to libtool
40   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
41   make
44 package() {
45   depends+=(libncursesw.so)
47   cd $pkgname-rel-$pkgver
48   make DESTDIR="$pkgdir" install
49   ln -s $pkgname-$_pkgmajorver "$pkgdir"/usr/lib/$pkgname