summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-04-02 17:48:39 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-04-02 17:48:39 -0400
commit158b35a711165b70a2b718b01cbc261ba50a5cf1 (patch)
tree55672c1404147bcfccfbebc79bb31019ef291d73 /libre
parenta896e039514a8f7a529042b373eb227d7e2c9b29 (diff)
add libre/{debhelper,dpkg} for the purpose of using debhelper to compile iceweasel
Diffstat (limited to 'libre')
-rw-r--r--libre/debhelper/PKGBUILD29
-rw-r--r--libre/dpkg/PKGBUILD49
-rw-r--r--libre/dpkg/dpkg-arch.patch17
-rw-r--r--libre/dpkg/dpkg-rsyncable.patch12
4 files changed, 107 insertions, 0 deletions
diff --git a/libre/debhelper/PKGBUILD b/libre/debhelper/PKGBUILD
new file mode 100644
index 000000000..60ff8f267
--- /dev/null
+++ b/libre/debhelper/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer (AUR): Antoine Lubineau <antoine@lubignon.info>
+# Contributor (AUR): Andrei "Garoth" Thorp <garoth@gmail.com>
+# Contributor (Parabola): Luke Shumaker <lukeshu@sbcglobal.net>
+
+_debrepo=http://ftp.debian.org/debian/pool/main/ # Debian Sid
+debfile() { echo -n "$_debrepo"; echo -n "$@"|sed -r 's@(.).*@\1/&@'; }
+
+pkgname=debhelper
+pkgver=9.20120322
+pkgrel=1
+pkgdesc="A collection of programs that can be used in a debian/rules file to automate common tasks"
+arch=('any')
+url="http://packages.debian.org/${pkgname}"
+license='GPL3'
+depends=('binutils' 'dpkg' 'file' 'html2text' 'man-db' 'perl')
+makedepends=('po4a')
+source=(`debfile ${pkgname}`/${pkgname}_$pkgver.tar.gz)
+
+build() {
+ cd "$srcdir/$pkgname"
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums=('9ea56782e6396a59ec49f45f9c4a603f')
diff --git a/libre/dpkg/PKGBUILD b/libre/dpkg/PKGBUILD
new file mode 100644
index 000000000..175b80610
--- /dev/null
+++ b/libre/dpkg/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer (AUR): Jochen Schalanda <jochen+aur@schalanda.name>
+# Contributor (AUR): Thomas Dziedzic <gostrc@gmail>
+# Contributor (AUR): Chris Giles <Chris.G.27@gmail.com>
+# Contributor (AUR): seblu <seblu+arch@seblu.net>
+# Contributor (AUR): squiddo <squiddo@intheocean.net>
+# Contributor (Parabola): Luke Shumaker <lukeshu@sbcglobal.net>
+
+_debrepo=http://ftp.debian.org/debian/pool/main/ # Debian Sid
+debfile() { echo -n "$_debrepo"; echo -n "$@"|sed -r 's@(.).*@\1/&@'; }
+
+# TODO: split into (dpkg dpkg-devtools dselect dpkg-perl)
+pkgname=dpkg
+pkgver=1.16.2
+pkgrel=1
+pkgdesc="The Debian Package Manager and utilities. Don't use it instead of 'pacman'."
+arch=('i686' 'x86_64')
+url="http://packages.debian.org/${pkgname}"
+license=('GPL2')
+depends=('bzip2' 'perl-timedate')
+makedepends=('gcc' 'make' 'patch')
+optdepends=('fakeroot')
+replaces=(dpkg-ubuntu)
+conflits=(dpkg-ubuntu)
+source=(`debfile ${pkgname}`/${pkgname}_${pkgver}.tar.bz2
+ dpkg-rsyncable.patch dpkg-arch.patch)
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ patch -p1 -i "${srcdir}/dpkg-rsyncable.patch"
+ patch -p1 -i "${srcdir}/dpkg-arch.patch" # Architecture detection
+
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --without-start-stop-daemon
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ # Variables
+ install -d "${pkgdir}/var/${pkgname}/updates/"
+ touch "${pkgdir}/var/lib/${pkgname}/{status,available}"
+}
+
+md5sums=('629ba7ee2024e6a5c0ff807aa2db02f8'
+ 'bc36609f6191c5b509fae58c21966c95'
+ '24ab12e79989a2e7f31653fb1dd3cdf9')
diff --git a/libre/dpkg/dpkg-arch.patch b/libre/dpkg/dpkg-arch.patch
new file mode 100644
index 000000000..66e7a2ef2
--- /dev/null
+++ b/libre/dpkg/dpkg-arch.patch
@@ -0,0 +1,17 @@
+diff -ru dpkg-1.16.2.orig/scripts/Dpkg/Arch.pm dpkg-1.16.2/scripts/Dpkg/Arch.pm
+--- dpkg-1.16.2.orig/scripts/Dpkg/Arch.pm 2012-03-19 02:40:08.000000000 -0400
++++ dpkg-1.16.2/scripts/Dpkg/Arch.pm 2012-04-02 16:14:55.000000000 -0400
+@@ -49,12 +49,7 @@
+ {
+ return $build_arch if defined $build_arch;
+
+- # Note: We *always* require an installed dpkg when inferring the
+- # build architecture. The bootstrapping case is handled by
+- # dpkg-architecture itself, by avoiding computing the DEB_BUILD_
+- # variables when they are not requested.
+-
+- my $build_arch = `dpkg --print-architecture`;
++ my $build_arch = `uname -m`;
+ syserr("dpkg --print-architecture failed") if $? >> 8;
+
+ chomp $build_arch;
diff --git a/libre/dpkg/dpkg-rsyncable.patch b/libre/dpkg/dpkg-rsyncable.patch
new file mode 100644
index 000000000..e7e58dfdf
--- /dev/null
+++ b/libre/dpkg/dpkg-rsyncable.patch
@@ -0,0 +1,12 @@
+diff -ru dpkg-1.16.2.orig/scripts/Dpkg/Compression.pm dpkg-1.16.2/scripts/Dpkg/Compression.pm
+--- dpkg-1.16.2.orig/scripts/Dpkg/Compression.pm 2012-03-19 02:40:08.000000000 -0400
++++ dpkg-1.16.2/scripts/Dpkg/Compression.pm 2012-04-02 16:26:27.000000000 -0400
+@@ -52,7 +52,7 @@
+ my $COMP = {
+ "gzip" => {
+ "file_ext" => "gz",
+- "comp_prog" => [ "gzip", "--no-name", "--rsyncable" ],
++ "comp_prog" => [ "gzip", "--no-name"],
+ "decomp_prog" => [ "gunzip" ],
+ "default_level" => 9,
+ },