2017年1月8日 星期日

[PKGBUILD][Archlinux] How to make PKGBUILD

Install relative package
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:

0 意見:

張貼留言