projects/aports·blob v2.6 · refs

49 lines · 1.2 KiB

1# This is an example APKBUILD file. Use this as a start to creating your own,
2# and remove these comments.
3# NOTE: Please fill out the license field for your package! If it is unknown,
4# then please put 'unknown'.
5
6# Contributor: Your Name <[email protected]>
7# Maintainer: Your Name <[email protected]>
8pkgname=NAME
9pkgver=VERSION
10pkgrel=0
11pkgdesc=""
12url=""
13license="GPL"
14depends=
15makedepends=
16install=
17subpackages="$pkgname-dev $pkgname-doc"
18source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
19
20# append extra dependencies to -dev subpackage
21# remove if not used.
22# depends_dev="somepackage-dev"
23
24_builddir="$srcdir"/$pkgname-$pkgver
25
26prepare() {
27 cd "$_builddir"
28 # apply patches here
29}
30
31build() {
32 cd "$_builddir"
33 ./configure --prefix=/usr \
34 --sysconfdir=/etc \
35 --mandir=/usr/share/man \
36 --infodir=/usr/share/info
37 make || return 1
38}
39
40package() {
41 cd "$_builddir"
42 make DESTDIR="$pkgdir" install
43
44 # remove the 2 lines below (and this) if there is no init.d script
45 # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
46 # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
47}
48
49md5sums="" #generate with 'abuild checksum'