summaryrefslogtreecommitdiff
path: root/firefox/Pkgfile
blob: e7c5aea197229ca351abef84680bdd794195fe0a (plain)
    1 # Description: Mozilla Web Browser Component
    2 # URL: http://www.mozilla.com/firefox/
    3 # Maintainer: Matt Housh, jaeger at morpheus dot net
    4 # Depends on: libidl, gtk, libpng, libjpeg, zlib
    5 
    6 name=firefox
    7 version=2.0.0.3
    8 release=1
    9 source=(http://ftp.mozilla.org/pub/mozilla.org/$name/releases/$version/source/$name-$version-source.tar.bz2 \
   10 	http://crux.nu/files/$name/$name.desktop \
   11 	http://crux.nu/files/$name/$name.png \
   12 	mozconfig)
   13 
   14 build() {
   15 	export MOZ_CO_PROJECT=browser
   16 	export BUILD_OFFICIAL=1
   17 	export MOZILLA_OFFICIAL=1
   18 	export MOZILLA_FIVE_HOME=/usr/lib/firefox
   19 
   20 	cd mozilla
   21 	sed -e "s/#CFLAGS#/$CFLAGS/" $SRC/mozconfig > .mozconfig
   22 	./configure
   23 	make
   24 
   25 	mkdir -p $PKG$MOZILLA_FIVE_HOME
   26 	cp -rL dist/bin/* $PKG$MOZILLA_FIVE_HOME
   27 	mkdir -p $PKG/usr/bin
   28 	ln -s /usr/lib/$name/$name $PKG/usr/bin/$name
   29 
   30 	# devel stuff
   31 	mkdir -p $PKG/usr/share/idl/$name $PKG/usr/include/$name
   32 	cp -frL dist/idl/* $PKG/usr/share/idl/$name/
   33 	cp -frL dist/include/* $PKG/usr/include/$name/
   34 
   35 	# pkgconfig
   36 	mkdir -p $PKG/usr/lib/pkgconfig
   37 	install build/unix/*.pc $PKG/usr/lib/pkgconfig
   38 	sed -i -e "s|/usr/local|/usr|g" $PKG/usr/lib/pkgconfig/*.pc
   39 	sed -i -e "s|$name-$version|$name|g" $PKG/usr/lib/pkgconfig/*.pc
   40 	# disgusting hack
   41 	sed -i -e 's|\(Cflags:.*\)|\1 -I${includedir}/dom -I${includedir}/necko|' \
   42 		$PKG/usr/lib/pkgconfig/*.pc
   43 
   44 	chmod 644 $PKG/usr/lib/pkgconfig/$name-*.pc
   45 
   46 	rm -f $PKG/usr/lib/$name/README.txt $PKG/usr/lib/$name/init.d/README
   47 
   48 	# desktop entry/icon
   49 	install -D -m 0644 $SRC/$name.desktop \
   50 		$PKG/usr/share/applications/$name.desktop
   51 	install -D -m 0644 $SRC/$name.png $PKG/usr/share/pixmaps/$name.png
   52 }

Generated by cgit