Skip to content

Instantly share code, notes, and snippets.

@chattama
Created August 29, 2012 08:12
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save chattama/3508370 to your computer and use it in GitHub Desktop.
Save chattama/3508370 to your computer and use it in GitHub Desktop.
archlinux makepkg on ubuntu
sudo aptitude install libarchive-dev bsdtar
git clone git://projects.archlinux.org/pacman.git
cd pacman
./autogen.sh
./configure --disable-doc
make
sudo make install
cd package
cp /usr/local/etc/makepkg.conf ./makepkg-arm.conf
makepkg-arm.conf ==================================================
CARCH="arm"
PKGBUILD ==========================================================
pkgname=linux-raspberrypi-custom
pkgver=3.2.27
pkgrel=1
pkgdesc="The Linux Kernel and modules for Raspberry Pi (customized)"
arch=(arm)
url="http://www.kernel.org/"
license=('GPL2')
xtool=/opt/cross/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-
build() {
cd $startdir/../linux
make ARCH=arm CROSS_COMPILE=$xtool
}
package() {
cd $startdir/../linux
make ARCH=arm CROSS_COMPILE=$xtool INSTALL_MOD_PATH=$pkgdir modules_install firmware_install
mkdir $pkgdir/boot
cp $startdir/../linux/arch/arm/boot/zImage $pkgdir/boot/kernel.img
}
===================================================================
makepkg --conf ./makepkg-arm.conf
@anatol
Copy link

anatol commented Oct 8, 2013

You need to install autopoint as well (at least it is needed on Ubuntu 12.04)

@bfadam
Copy link

bfadam commented Jan 20, 2015

Hi, I noticed that you have in your contributions another folder that has these files in a folder. However, when I finished installing pacman, I had no packagedir that I could find. I made folder and called it package; then added the CARCH="arm" line, and the PKGBUILD file to the folder. When entering, makepkg --conf ./makepkg-arm.conf , into the command line it returned; bash: makepkg command not found. This is on Ubuntu 13.10 linux on android. And also, any help would be greatly appreciated if possible.

@stephen304
Copy link

Also requires pkg-config, libtool, and of course make.

Mine errors out with:

stephen@Bro ~/pacman (git)-[master] % make
 cd . && /bin/bash /home/stephen/pacman/build-aux/missing automake-1.14 --foreign Makefile
 cd . && /bin/bash ./config.status Makefile 
config.status: creating Makefile
make --no-print-directory all-recursive
Making all in lib/libalpm
Making all in po
test -z "ar.gmo ca.gmo cs.gmo da.gmo de.gmo el.gmo en_GB.gmo es.gmo es_419.gmo fi.gmo fr.gmo gl.gmo hr.gmo hu.gmo id.gmo it.gmo ja.gmo kk.gmo ko.gmo lt.gmo nb.gmo nl.gmo pl.gmo pt.gmo pt_BR.gmo ro.gmo ru.gmo sk.gmo sl.gmo sr.gmo sr@latin.gmo sv.gmo tr.gmo uk.gmo zh_CN.gmo zh_TW.gmo" || make ar.gmo ca.gmo cs.gmo da.gmo de.gmo el.gmo en_GB.gmo es.gmo es_419.gmo fi.gmo fr.gmo gl.gmo hr.gmo hu.gmo id.gmo it.gmo ja.gmo kk.gmo ko.gmo lt.gmo nb.gmo nl.gmo pl.gmo pt.gmo pt_BR.gmo ro.gmo ru.gmo sk.gmo sl.gmo sr.gmo sr@latin.gmo sv.gmo tr.gmo uk.gmo zh_CN.gmo zh_TW.gmo
: --update ar.po libalpm.pot
rm -f ar.gmo && : -c --statistics -o ar.gmo ar.po
mv: cannot stat ‘t-ar.gmo’: No such file or directory
make[4]: *** [ar.gmo] Error 1
make[3]: *** [stamp-po] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

@rahulrewa9200
Copy link

root@scube014:~/qingy-fork-master# make clean
Making clean in src
make[1]: Entering directory /home/rahul/qingy-fork-master/src' Making clean in libraries make[2]: Entering directory /home/rahul/qingy-fork-master/src/libraries'
Making clean in libraries
/bin/bash: line 20: cd: libraries: No such file or directory
make[2]: *** [clean-recursive] Error 1
make[2]: Leaving directory /home/rahul/qingy-fork-master/src/libraries' make[1]: *** [clean-recursive] Error 1 make[1]: Leaving directory /home/rahul/qingy-fork-master/src'
make: *** [clean-recursive] Error 1
plz find the salutation and give me write ans

@MarcoDotIO
Copy link

MarcoDotIO commented Mar 29, 2018

I'm getting this error after performing a "sudo apt-get update"

warning: no 'XferCommand' configured
error: no usable package repositories configured.

EDIT:
Remove the hashtags in front of both Xfercommand lines in /usr/local/etc/pacman.conf

@Roadhog360
Copy link

How do I use this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment