archrelease: copy trunk to community-any
[ArchLinux/community.git] / dillo / repos / community-x86_64 / PKGBUILD
blobb672ce1985a159d53e3f51d5d93b697a71e94c02
1 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: dorphell <dorphell@archlinux.org>
4 pkgname=dillo
5 pkgver=3.0.5
6 pkgrel=12
7 pkgdesc="A small, fast graphical web browser built on FLTK"
8 arch=(x86_64)
9 url="https://www.dillo.org"
10 license=('GPL')
11 depends=('fltk' 'libjpeg' 'libpng' 'openssl' 'perl' 'zlib')
12 backup=(etc/dillo/{dillorc,domainrc,dpidrc,keysrc})
13 validpgpkeys=('D91CE08D8679CF2A6F8792E05B1004E936929CEE')
14 source=(https://www.dillo.org/download/$pkgname-$pkgver.tar.bz2{,.asc}
15         openssl.patch
16         dillo.desktop
17         https://www.dillo.org/Icons/ProgramIcon128.png)
18 sha256sums=('db1be16c1c5842ebe07b419aa7c6ef11a45603a75df2877f99635f4f8345148b'
19             'SKIP'
20             'ddd097b30b95a5ac5638f57d04dc2e421d5c2fa3d0985747921e1bfc5b55fb23'
21             'e94ead3a359c2eceb934b07af0fac4864251b9721fa7f4855331daa017b66202'
22             '72ecb57983117b17f0777caf6cf935a2ad5d72aca7b07b11f5b75562cb420778')
24 prepare() {
25   cd "$srcdir/$pkgname-$pkgver"
26   patch -Np1 -i ../openssl.patch
27   autoreconf -fi
30 build() {
31   cd "$srcdir/$pkgname-$pkgver"
32   CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
33   ./configure --prefix=/usr --sysconfdir=/etc --enable-cookies --enable-ssl
34   make
37 package() {
38   cd "$srcdir/$pkgname-$pkgver"
39   make DESTDIR="$pkgdir" install
41   install -Dm644 ../dillo.desktop "$pkgdir/usr/share/applications/dillo.desktop"
42   install -Dm644 ../ProgramIcon128.png "$pkgdir/usr/share/pixmaps/dillo.png"