| 782 | | ## |
|---|
| 783 | | ## Build a woody-friendly package |
|---|
| 784 | | ## |
|---|
| 785 | | if test "${action}" = "woody" |
|---|
| 786 | | then |
|---|
| 787 | | set -ex |
|---|
| 788 | | test -d "$1" |
|---|
| 789 | | |
|---|
| 790 | | # changelog: replace (1.2.3-4) with (1.2.3-0woody.4) |
|---|
| 791 | | sed -e 's/^vlc (\([^)]*\)-\([^-)]*\))/vlc-woody (\1-0woody.\2)/' \ |
|---|
| 792 | | -e 's/ unstable; / stable; /' \ |
|---|
| 793 | | < "$1/debian/changelog" > "$1/debian/changelog.woody" |
|---|
| 794 | | mv "$1/debian/changelog.woody" "$1/debian/changelog" |
|---|
| 795 | | |
|---|
| 796 | | # control: replace liba52-*-dev with a52dec-dev (>=0.7.3) |
|---|
| 797 | | # libdv*-dev with libdv-dev |
|---|
| 798 | | # kdelibs4-dev with kdelibs-dev |
|---|
| 799 | | # libqt3-mt-dev libqt3-compat-headers with libqt-dev |
|---|
| 800 | | # libarts1-dev with libarts-dev |
|---|
| 801 | | # libdvdread3-dev with libdvdread2-dev |
|---|
| 802 | | # libdvdplay0-dev (>=1.0.1-2) with libdvdplay0-dev |
|---|
| 803 | | # libxosd-dev (>=2.2.4-1.3) with libxosd-dev |
|---|
| 804 | | # ttf-freefont with ttf-thryomanes |
|---|
| 805 | | # dvb-dev (>= 1.0.1-6) with dvb-dev |
|---|
| 806 | | # remove libwxgtk2.4-dev |
|---|
| 807 | | # libidl0 (workaround for mozilla-dev's bad deps) |
|---|
| 808 | | # libglib2.0-0 (workaround for mozilla-dev's bad deps) |
|---|
| 809 | | # gcc-3.2 (workaround for an ICE in gcc-3.3) |
|---|
| 810 | | # change Section: gnome with Section: graphics |
|---|
| 811 | | # Section: kde with Section: kde |
|---|
| 812 | | # Section: libdevel with Section: devel |
|---|
| 813 | | sed -e 's/liba52-[^-]*-dev/a52dec-dev (>=0.7.3)/' \ |
|---|
| 814 | | -e 's/libdv[0-9]*-dev/libdv-dev/' \ |
|---|
| 815 | | -e 's/kdelibs[0-9]*-dev/kdelibs-dev/' \ |
|---|
| 816 | | -e 's/libqt[0-9]*-mt-dev/libqt-dev/' \ |
|---|
| 817 | | -e 's/, libqt[0-9]*-compat-headers[^,]*//' \ |
|---|
| 818 | | -e 's/libarts[0-9]*-dev/libarts-dev/' \ |
|---|
| 819 | | -e 's/libdvdread[0-9]*-dev/libdvdread2-dev/' \ |
|---|
| 820 | | -e 's/, libdvdplay0-dev[^,]*/, libdvdplay0-dev/' \ |
|---|
| 821 | | -e 's/, libxosd-dev[^,]*/, libxosd-dev/' \ |
|---|
| 822 | | -e 's/, ttf-freefont[^,]*/, ttf-thryomanes/' \ |
|---|
| 823 | | -e 's/, dvb-dev[^,]*/, dvb-dev/' \ |
|---|
| 824 | | -e 's/, libwx[^,]*//' \ |
|---|
| 825 | | -e '/Package: wxvlc/,/^ *$/d' \ |
|---|
| 826 | | -e 's/, libidl0[^,]*//' \ |
|---|
| 827 | | -e 's/, libglib2.0-0[^,]*//' \ |
|---|
| 828 | | -e 's/, gcc-3.2[^,]*//' \ |
|---|
| 829 | | -e 's/Section: gnome/Section: graphics/' \ |
|---|
| 830 | | -e 's/Section: kde/Section: graphics/' \ |
|---|
| 831 | | -e 's/Section: libdevel/Section: devel/' \ |
|---|
| 832 | | < "$1/debian/control" > "$1/debian/control.woody" |
|---|
| 833 | | mv "$1/debian/control.woody" "$1/debian/control" |
|---|
| 834 | | |
|---|
| 835 | | # rules: remove wxwindows and skins stuff |
|---|
| 836 | | sed -e '/# Package: wxvlc/,/^ *$/d' \ |
|---|
| 837 | | -e 's,--enable-wxwindows,--disable-wxwindows,' \ |
|---|
| 838 | | -e 's,--enable-skins,--disable-skins,' \ |
|---|
| 839 | | < "$1/debian/rules" > "$1/debian/rules.woody" |
|---|
| 840 | | mv "$1/debian/rules.woody" "$1/debian/rules" |
|---|
| 841 | | chmod 0755 "$1/debian/rules" |
|---|
| 842 | | |
|---|
| 843 | | # modules/misc/freetype.c: replace the default font |
|---|
| 844 | | sed -e 's,freefont/FreeSerifBold.ttf,thryomanes/thryb___.ttf,' \ |
|---|
| 845 | | < "$1/modules/misc/freetype.c" > "$1/modules/misc/freetype.c.woody" |
|---|
| 846 | | mv "$1/modules/misc/freetype.c.woody" "$1/modules/misc/freetype.c" |
|---|
| 847 | | fi |
|---|
| 848 | | |
|---|