diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-11-03 23:25:49 +0100 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-11-03 23:34:52 +0100 |
commit | f27a6bab87bbe226bf41db0fb06d1c1dfbda4a3b (patch) | |
tree | a9946a0ac64be8bb5bdc8712bb5cf2f5b8355555 /main/dillo/APKBUILD | |
parent | bc26d7e9db7df4e8c86a24a41cc0f16e5a3539cb (diff) | |
download | aports-f27a6bab87bbe226bf41db0fb06d1c1dfbda4a3b.tar.bz2 aports-f27a6bab87bbe226bf41db0fb06d1c1dfbda4a3b.tar.xz |
main/dillo: improve APKBUILD and install more doc files
Diffstat (limited to 'main/dillo/APKBUILD')
-rw-r--r-- | main/dillo/APKBUILD | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/main/dillo/APKBUILD b/main/dillo/APKBUILD index 1383eea03e..78501456f6 100644 --- a/main/dillo/APKBUILD +++ b/main/dillo/APKBUILD @@ -2,48 +2,55 @@ # Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to> pkgname=dillo pkgver=3.0.5 -pkgrel=1 +pkgrel=2 pkgdesc="Very small and fast GUI web browser" url="http://www.dillo.org" arch="all" license="GPL" depends="" -makedepends="fltk-dev zlib-dev libx11-dev libpng-dev libjpeg-turbo-dev - libressl-dev" +makedepends="fltk-dev zlib-dev libx11-dev libpng-dev + libjpeg-turbo-dev libressl-dev" install="" subpackages="$pkgname-doc" source="http://www.dillo.org/download/${pkgname}-${pkgver}.tar.bz2 dillo.desktop dillo.png " +builddir="$srcdir/$pkgname-$pkgver" -_builddir=$srcdir/${pkgname}-${pkgver} prepare() { - local i - cd "$_builddir" + default_prepare || return 1 + + cd "$builddir" update_config_sub || return 1 - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var \ + --enable-png \ + --enable-gif \ + --enable-jpeg \ --enable-ipv6 \ --enable-ssl \ || return 1 - make + make || return 1 } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 + + mkdir -p "$pkgdir"/usr/share/doc/$pkgname/ + install -m644 AUTHORS ChangeLog README NEWS \ + "$pkgdir"/usr/share/doc/$pkgname/ || return 1 + install -Dm644 "$srcdir"/dillo.desktop \ "$pkgdir"/usr/share/applications/dillo.desktop \ || return 1 |