sudo pacman -S fakeroot
Download source from website
EX:
mkdir test
cd test
wget test.tar.gz
Then copy temporary file to edit.
cp /usr/share/pacman/PKGBUILD.proto test/
Modify file name to PKGBUILD
mv PKGBUILD.proto PKGBUILD
Edit file
arch=('any') # Must write "any"
# Create checksum
makepkg -g
# Download package and prepare environment
makepkg -o
# Start to compile
makepkg -s
# Install package
sudo pacman -U makedepend-1.0.5-1-any.pkg.tar.xz
Reference:
- Package Building in Arch Linux
- How to Create Your Own Arch Linux Package Repository, For Free
- Arch User Repository
0 意見:
張貼留言