Views
The following is a template for a PKGBUILD-file.
It is the basis for a programme called makepkg. You can put the file anywhere in your filestructure where you have write access. Then run makepkg in that very folder.
The programme will read the PKGBUILD-file, will download the source, change into a save chroot, compile, install to a subdirectory called pkg and then pack the package with those files. This package can be installed with pacman -U pd-template-version.tar.xz.
If you share your file on Arch User Repository (AUR) every archer on the world can install your externals for example with yaourt.
# Contributor: Your name <your.name at the domain of email dot com>
pkgname=pd-template
pkgver=version
pkgrel=1
pkgdesc="External for Pure Data. Describe functionality in on sentence."
arch=('i686' 'x86_64')
url="http://your-site.html"
depends=('pd')
license=('GPL2')
groups=('pd-externals')
source=('http://soucre.at/${pkgname}-${pkgver}')
md5sums=('--------------------------------') # generat with makepkg -g >> PKGBUILD
build() {
cd ${srcdir}/template-version
make
make DESTDIR=$startdir/pkg prefix=/usr install
}