mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
added community/netsurf (#574)
This commit is contained in:
parent
1fd0274f6f
commit
7c12e0cf42
2 changed files with 73 additions and 0 deletions
59
community/netsurf/PKGBUILD
Normal file
59
community/netsurf/PKGBUILD
Normal file
|
@ -0,0 +1,59 @@
|
||||||
|
# $Id$
|
||||||
|
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
|
||||||
|
# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
|
||||||
|
# Contributor: Georgij Kondratjev <smpuj@bk.ru>
|
||||||
|
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
|
||||||
|
|
||||||
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||||
|
# - move make NETSURF_* defines into Makefile.config (FS #37104)
|
||||||
|
|
||||||
|
pkgname=netsurf
|
||||||
|
pkgver=3.0
|
||||||
|
pkgrel=4
|
||||||
|
pkgdesc='Lightweight and fast web browser'
|
||||||
|
arch=('x86_64' 'i686')
|
||||||
|
url='http://www.netsurf-browser.org/'
|
||||||
|
license=('MIT' 'GPL2')
|
||||||
|
depends=('gtk2' 'libmng' 'curl' 'librsvg' 'desktop-file-utils' 'libnsbmp' 'libnsgif' 'libcss' 'libwebp' 'libdom' 'lcms') # 'libharu' 'gstreamer0.10'
|
||||||
|
makedepends=('js' 're2c' 'gendesk' 'netsurf-buildsystem' 'libglade' 'addinclude')
|
||||||
|
install="$pkgname.install"
|
||||||
|
source=("netsurf.png::http://ubuntu.allmyapps.com/data/n/e/netsurf-netsurf-web-browser/icon_48x48_netsurf.png"
|
||||||
|
"http://download.$pkgname-browser.org/$pkgname/releases/source/$pkgname-$pkgver-src.tar.gz")
|
||||||
|
sha256sums=('f0dbcc5d80bf03d706aa8b28a322aa7f169a40813848c2d1505691f6e2c7ef00'
|
||||||
|
'7c6a48d3cc3e9a3e3a51b532ddf60f7697e97bf8b61a6d3b2ced1a2e89fbccc6')
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$pkgname-$pkgver"
|
||||||
|
|
||||||
|
addinclude image/rsvg.c stdio
|
||||||
|
addinclude image/mng.c stdio
|
||||||
|
addinclude image/png.c stdio
|
||||||
|
|
||||||
|
gendesk --pkgname "$pkgname" --pkgdesc "$pkgdesc" --exec 'netsurf %U' \
|
||||||
|
--genericname 'Web Browser' --comment 'Lightweight web browser' \
|
||||||
|
--mimetypes 'text/html;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/geo'
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$pkgname-$pkgver"
|
||||||
|
|
||||||
|
echo "override NETSURF_USE_WEBP := YES" > Makefile.config
|
||||||
|
echo "override NETSURF_USE_VIDEO := NO" >> Makefile.config
|
||||||
|
echo "override NETSURF_USE_HARU_PDF := NO" >> Makefile.config
|
||||||
|
|
||||||
|
make \
|
||||||
|
PREFIX=/usr \
|
||||||
|
TARGET=gtk
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$pkgname-$pkgver"
|
||||||
|
|
||||||
|
make install PREFIX=/usr DESTDIR="$pkgdir"
|
||||||
|
install -Dm644 "../$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
|
||||||
|
install -Dm644 "$pkgname.desktop" \
|
||||||
|
"$pkgdir/usr/share/applications/$pkgname.desktop"
|
||||||
|
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 et:
|
14
community/netsurf/netsurf.install
Normal file
14
community/netsurf/netsurf.install
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
post_upgrade() {
|
||||||
|
#gtk-update-icon-cache -q -f -t /usr/share/icons/hicolor
|
||||||
|
update-desktop-database -q
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
post_upgrade
|
||||||
|
}
|
||||||
|
|
||||||
|
post_remove() {
|
||||||
|
post_upgrade
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 et:
|
Loading…
Reference in a new issue