summaryrefslogtreecommitdiff
path: root/sample.APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-12-30 08:51:38 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-12-30 08:51:38 +0000
commit5847b5473b251ca2af922a8059288c3e0ed0c952 (patch)
tree5c4ffe4f62e2583049765af5c99dddbb058fb25c /sample.APKBUILD
parent3ea1ead5896c559e83141440f39f7bd9512530c6 (diff)
downloadabuild-5847b5473b251ca2af922a8059288c3e0ed0c952.tar.gz
abuild-5847b5473b251ca2af922a8059288c3e0ed0c952.tar.bz2
abuild-5847b5473b251ca2af922a8059288c3e0ed0c952.tar.xz
abuild-5847b5473b251ca2af922a8059288c3e0ed0c952.zip
sample: use separate package()
Diffstat (limited to 'sample.APKBUILD')
-rw-r--r--sample.APKBUILD18
1 files changed, 14 insertions, 4 deletions
diff --git a/sample.APKBUILD b/sample.APKBUILD
index 5206946..1754973 100644
--- a/sample.APKBUILD
+++ b/sample.APKBUILD
@@ -11,8 +11,8 @@ pkgrel=0
pkgdesc=""
url=""
license="GPL"
-depends=""
-makedepends=""
+depends=
+makedepends=
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
@@ -21,14 +21,24 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
# remove if not used.
# depends_dev="somepackage-dev"
-build() {
- cd "$srcdir"/$pkgname-$pkgver
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+build() {
+ cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make || return 1
+}
+
+package() {
+ cd "$_builddir"
make DESTDIR="$pkgdir" install
# remove the 2 lines below (and this) if there is no init.d script