summaryrefslogtreecommitdiffstats
path: root/sample.APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-07-01 13:17:02 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-07-01 13:17:02 +0000
commit0bd0949519d96db5a96bbc38a923da29510398df (patch)
tree77c4ab8c3f7373dfcdf1d44553b700718316046a /sample.APKBUILD
parent89580a53d8475167c0b1b46fd20db584c94b0717 (diff)
downloadabuild-0bd0949519d96db5a96bbc38a923da29510398df.tar.bz2
abuild-0bd0949519d96db5a96bbc38a923da29510398df.tar.xz
sample.APKBUILD: add more comments
Diffstat (limited to 'sample.APKBUILD')
-rw-r--r--sample.APKBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/sample.APKBUILD b/sample.APKBUILD
index 606bea8..5206946 100644
--- a/sample.APKBUILD
+++ b/sample.APKBUILD
@@ -14,11 +14,15 @@ license="GPL"
depends=""
makedepends=""
install=
-subpackages="$pkgname-doc $pkgname-dev"
+subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
+# append extra dependencies to -dev subpackage
+# remove if not used.
+# depends_dev="somepackage-dev"
+
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$srcdir"/$pkgname-$pkgver
./configure --prefix=/usr \
--sysconfdir=/etc \
@@ -27,6 +31,7 @@ build() {
make || return 1
make DESTDIR="$pkgdir" install
+ # remove the 2 lines below (and this) if there is no init.d script
# install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
# install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}