projects/aports·blob v2.23.0_rc2 · refs

48 lines · 1.1 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=""
13arch="all"
14license="GPL"
15depends=
16depends_dev=
17makedepends="$depends_dev"
18install=
19subpackages="$pkgname-dev $pkgname-doc"
20source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
21
22
23_builddir="$srcdir"/$pkgname-$pkgver
24
25prepare() {
26 cd "$_builddir"
27 # apply patches here
28}
29
30build() {
31 cd "$_builddir"
32 ./configure --prefix=/usr \
33 --sysconfdir=/etc \
34 --mandir=/usr/share/man \
35 --infodir=/usr/share/info
36 make || return 1
37}
38
39package() {
40 cd "$_builddir"
41 make DESTDIR="$pkgdir" install
42
43 # remove the 2 lines below (and this) if there is no init.d script
44 # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
45 # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
46}
47
48md5sums="" #generate with 'abuild checksum'