Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cp /var/abs/extra/firefox . -a
- $ cd firefox/
- $ ls
- browser-defaulturls.patch firefox.desktop firefox-safe.desktop mozconfig PKGBUILD
- firefox-agent.patch firefox.install firefox-version.patch mozilla-firefox-1.0-lang.patch python2.7.patch
- $ cat PKGBUILD
- # $Id: PKGBUILD 102680 2010-12-09 18:10:10Z ibiru $
- # Contributor: Jakub Schmidtke <sjakub@gmail.com>
- pkgname=firefox
- pkgver=3.6.13
- pkgrel=1
- _xulver=1.9.2.13
- pkgdesc="Standalone web browser from mozilla.org"
- arch=('i686' 'x86_64')
- license=('MPL' 'GPL' 'LGPL')
- depends=("xulrunner=${_xulver}" 'desktop-file-utils')
- makedepends=('zip' 'pkg-config' 'diffutils' 'libgnomeui>=2.24.1' 'python2' 'wireless_tools' 'autoconf2.13')
- install=firefox.install
- url="http://www.mozilla.org/projects/firefox"
- source=(http://mirror.yandex.ru/mozilla/firefox/releases/${pkgver}/source/firefox-${pkgver}.source.tar.bz2
- mozconfig
- firefox.desktop
- firefox-safe.desktop
- mozilla-firefox-1.0-lang.patch
- browser-defaulturls.patch
- firefox-version.patch
- firefox-agent.patch
- python2.7.patch)
- md5sums=(#это неважно, убрал для пастебина
- )
- build() {
- cd "${srcdir}/mozilla-1.9.2"
- patch -Np1 -i "${srcdir}/mozilla-firefox-1.0-lang.patch"
- patch -Np1 -i "${srcdir}/browser-defaulturls.patch"
- patch -Np1 -i "${srcdir}/firefox-version.patch"
- patch -Np1 -i "${srcdir}/firefox-agent.patch"
- patch -Np0 -i "${srcdir}/python2.7.patch"
- cp "${srcdir}/mozconfig" .mozconfig
- unset CFLAGS
- unset CXXFLAGS
- export LDFLAGS="-Wl,-rpath,/usr/lib/firefox-3.6"
- make -j1 -f client.mk build MOZ_MAKE_FLAGS="${MAKEFLAGS}"
- make -j1 DESTDIR="${pkgdir}" install
- rm -f ${pkgdir}/usr/lib/firefox-3.6/libjemalloc.so
- install -m755 -d ${pkgdir}/usr/share/{applications,pixmaps}
- install -m644 ${srcdir}/mozilla-1.9.2/browser/branding/unofficial/default48.png ${pkgdir}/usr/share/pixmaps/firefox.png
- install -m644 ${srcdir}/firefox.desktop ${pkgdir}/usr/share/applications/
- install -m644 ${srcdir}/firefox-safe.desktop ${pkgdir}/usr/share/applications/
- }
- $ cat mozconfig
- . $topsrcdir/browser/config/mozconfig
- ac_add_options --prefix=/usr
- ac_add_options --libdir=/usr/lib
- ac_add_options --with-system-nspr
- ac_add_options --with-system-nss
- ac_add_options --with-system-jpeg
- ac_add_options --with-system-zlib
- ac_add_options --with-system-png
- ac_add_options --with-pthreads
- ac_add_options --disable-tests
- ac_add_options --disable-debug
- ac_add_options --enable-optimize
- ac_add_options --disable-installer
- ac_add_options --enable-xinerama
- ac_add_options --enable-default-toolkit=cairo-qt ###########!!!!
- ac_add_options --disable-xprint
- ac_add_options --enable-strip
- ac_add_options --enable-pango
- #ac_add_options --enable-system-cairo
- ac_add_options --enable-svg
- ac_add_options --enable-canvas
- ac_add_options --enable-startup-notification
- ac_add_options --enable-libxul
- ac_add_options --disable-crashreporter
- ac_add_options --disable-updater
- ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-1.9.2
- ac_add_options --disable-safe-browsing ################!!!
- ac_add_options --with-branding=browser/branding/unofficial
- export BUILD_OFFICIAL=1
- export MOZILLA_OFFICIAL=1
- export USE_SHORT_LIBNAME=1
- mk_add_options BUILD_OFFICIAL=1
- mk_add_options MOZILLA_OFFICIAL=1
- mk_add_options USE_SHORT_LIBNAME=1
- $ makepkg
- #Много строчек, ошибок вроде нет
- ==> Очистка...
- -> Очистка других файлов...
- -> Сжатие страниц man и info...
- -> Удаление отладочной информации из бинарных файлов и библиотек...
- ==> ВНИМАНИЕ: Пакет содержит ссылку на $srcdir
- ==> Создание пакета...
- -> Создание файла .PKGINFO...
- -> Добавляется установочный скрипт...
- -> Архивируется пакет...
- ==> Выход из окружения fakeroot.
- ==> Сборка завершена: firefox 3.6.13-1 (Втр Фев 22 17:45:34 MSK 2011)
- $ sudo pacman -U firefox-3.6.13-1-i686.pkg.tar.xz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement