APKBUILD examples:Simple: Difference between revisions
(Created page with "Simple APKBUILD with -doc subpackage, using abuild's default ''doc()'' function: <pre> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=m4 pkgver=1.4.15 pkgrel=0 pkgde...") |
m (added to Development Category) |
||
Line 34: | Line 34: | ||
20a7dedec0e9e0ee7107e33e798ffdbe gnulib-uclibc.patch" | 20a7dedec0e9e0ee7107e33e798ffdbe gnulib-uclibc.patch" | ||
</pre> | </pre> | ||
[[Category:Development]] |
Revision as of 04:57, 12 March 2012
Simple APKBUILD with -doc subpackage, using abuild's default doc() function:
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=m4 pkgver=1.4.15 pkgrel=0 pkgdesc="GNU macro processor" url="http://www.gnu.org/software/m4" depends= arch="all" license="GPL" subpackages="m4-doc" source="ftp://ftp.gnu.org/gnu/m4/$pkgname-$pkgver.tar.gz gnulib-uclibc.patch" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" patch -p1 -i "$srcdir"/gnulib-uclibc.patch } build() { cd "$_builddir" ./configure --prefix=/usr make } package() { cd "$_builddir" make install DESTDIR="$pkgdir" } md5sums="5649a2e593b6c639deae9e72ede777dd m4-1.4.15.tar.gz 20a7dedec0e9e0ee7107e33e798ffdbe gnulib-uclibc.patch"