Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-22 21:52:23 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-22 21:52:23 +0200
commitb591e69541386f8fb3bbf6e49e2d6f2eefedb63e (patch)
treeeace574812fcefb8f4b1f24a46405c94029d5581
parent2f18ca1836cd2439953d4132867727b205cf929e (diff)
add initial [multilib] support
-rw-r--r--Makefile4
-rwxr-xr-xarchbuild14
-rwxr-xr-xcommitpkg3
3 files changed, 19 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5bf6def..60dfc80 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,7 @@ install:
ln -sf commitpkg $(DESTDIR)/usr/bin/stagingpkg
ln -sf commitpkg $(DESTDIR)/usr/bin/communitypkg
ln -sf commitpkg $(DESTDIR)/usr/bin/community-testingpkg
+ ln -sf commitpkg $(DESTDIR)/usr/bin/multilibpkg
# arch{co,release,rm}
install -m 755 archco $(DESTDIR)/usr/bin
install -m 755 communityco $(DESTDIR)/usr/bin
@@ -29,6 +30,7 @@ install:
ln -sf archbuild $(DESTDIR)/usr/bin/testing-x86_64-build
ln -sf archbuild $(DESTDIR)/usr/bin/staging-i686-build
ln -sf archbuild $(DESTDIR)/usr/bin/staging-x86_64-build
+ ln -sf archbuild $(DESTDIR)/usr/bin/multilib-build
# Additional packaging helper scripts
install -m 755 lddd $(DESTDIR)/usr/bin
install -m 755 finddeps $(DESTDIR)/usr/bin
@@ -51,6 +53,7 @@ uninstall:
rm $(DESTDIR)/usr/bin/stagingpkg
rm $(DESTDIR)/usr/bin/communitypkg
rm $(DESTDIR)/usr/bin/community-testingpkg
+ rm $(DESTDIR)/usr/bin/multilibpkg
rm $(DESTDIR)/usr/sbin/mkarchroot
rm $(DESTDIR)/usr/sbin/makechrootpkg
rm $(DESTDIR)/usr/bin/extra-i686-build
@@ -59,6 +62,7 @@ uninstall:
rm $(DESTDIR)/usr/bin/testing-x86_64-build
rm $(DESTDIR)/usr/bin/staging-i686-build
rm $(DESTDIR)/usr/bin/staging-x86_64-build
+ rm $(DESTDIR)/usr/bin/multilib-build
rm $(DESTDIR)/usr/bin/lddd
rm $(DESTDIR)/usr/bin/finddeps
rm $(DESTDIR)/usr/bin/archco
diff --git a/archbuild b/archbuild
index ef62ca7..6967dce 100755
--- a/archbuild
+++ b/archbuild
@@ -1,8 +1,13 @@
#!/bin/bash
cmd="$(basename "${0%-build}")"
-repo=${cmd%-*}
-arch=${cmd#*-}
+if [ "${cmd}" == 'multilib' ]; then
+ repo='multilib'
+ arch='x86_64'
+else
+ repo=${cmd%-*}
+ arch=${cmd#*-}
+fi
chroots='/var/tmp/archbuild'
clean_first=false
@@ -26,6 +31,11 @@ if [ "$(uname -m)" == 'i686' -a "${arch}" != 'i686' ]; then
exit 1
fi
+if [ "$(uname -m)" != 'x86_64' -a "${repo}" == 'multilib' ]; then
+ echo 'You can only build multilib packages on a x86_64 system'
+ exit 1
+fi
+
if ${clean_first} || [ ! -d "${chroots}/${repo}-${arch}" ]; then
echo "Creating chroot for [${repo}] (${arch})..."
sudo rm -rf ${chroots}/${repo}-${arch}
diff --git a/commitpkg b/commitpkg
index d548065..56e78f7 100755
--- a/commitpkg
+++ b/commitpkg
@@ -54,6 +54,9 @@ elif [ "$cmd" == 'communitypkg' ]; then
elif [ "$cmd" == 'community-testingpkg' ]; then
repo='community-testing'
server='aur.archlinux.org'
+elif [ "$cmd" == 'multilibpkg' ]; then
+ repo='multilib'
+ server='aur.archlinux.org'
else
if [ $# -eq 0 ]; then
abort 'usage: commitpkg <reponame> [-l limit] [commit message]'