From 21cd6680eee14cb6ab89ff95d8ca2413833800c7 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 29 Jan 2009 09:06:43 +0000 Subject: abuild: support for creation of new APKBUILD from template abuild [-c] -n PKGNAME[-PKGVER] creates a directory with new APKBUILD. If -c is specified will sample init.d, conf.d and install script be copied as well. --- sample.APKBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 sample.APKBUILD (limited to 'sample.APKBUILD') diff --git a/sample.APKBUILD b/sample.APKBUILD new file mode 100644 index 0000000..606bea8 --- /dev/null +++ b/sample.APKBUILD @@ -0,0 +1,34 @@ +# This is an example APKBUILD file. Use this as a start to creating your own, +# and remove these comments. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Contributor: Your Name +# Maintainer: Your Name +pkgname=NAME +pkgver=VERSION +pkgrel=0 +pkgdesc="" +url="" +license="GPL" +depends="" +makedepends="" +install= +subpackages="$pkgname-doc $pkgname-dev" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info + make || return 1 + make DESTDIR="$pkgdir" install + + # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname +} + +md5sums="" #generate with 'abuild checksum' -- cgit v1.2.3-70-g09d2