sample.APKBUILD 1.28 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1
# This is an example APKBUILD file. Use this as a start to creating your own,
2
# and remove these comments.
Natanael Copa's avatar
Natanael Copa committed
3 4 5 6
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Contributor: Your Name <youremail@domain.com>
Natanael Copa's avatar
Natanael Copa committed
7
# Maintainer: Your Name <youremail@domain.com>
Natanael Copa's avatar
Natanael Copa committed
8 9 10 11 12
pkgname=NAME
pkgver=VERSION
pkgrel=0
pkgdesc=""
url=""
13
arch="all"
Natanael Copa's avatar
Natanael Copa committed
14
license="GPL"
Natanael Copa's avatar
Natanael Copa committed
15
depends=
16 17
depends_dev=
makedepends="$depends_dev"
Natanael Copa's avatar
Natanael Copa committed
18
install=
19
subpackages="$pkgname-dev $pkgname-doc"
20
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
Natanael Copa's avatar
Natanael Copa committed
21

22
builddir="$srcdir"/$pkgname-$pkgver
Natanael Copa's avatar
Natanael Copa committed
23 24

prepare() {
25
	cd "$builddir"
Natanael Copa's avatar
Natanael Copa committed
26
}
Natanael Copa's avatar
Natanael Copa committed
27

Natanael Copa's avatar
Natanael Copa committed
28
build() {
29
	cd "$builddir"
Natanael Copa's avatar
Natanael Copa committed
30 31 32 33
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
34
	make
Natanael Copa's avatar
Natanael Copa committed
35 36 37
}

package() {
38
	cd "$builddir"
39
	make DESTDIR="$pkgdir" install
40

41
	# remove the 2 lines below (and this) if there is no init.d script
42 43
	# install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	# install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
Natanael Copa's avatar
Natanael Copa committed
44 45
}

46 47 48 49
check() {
	# uncomment the 2 lines below if there is a testsuite.  we assume the testsuite
	# is run using "make check", which is the default for autotools-based build systems.
	# cd "$builddir"
50
	# make check
51 52
}

Natanael Copa's avatar
Natanael Copa committed
53
md5sums="" #generate with 'abuild checksum'