sample.APKBUILD 928 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2 3 4 5 6
# This is an example APKBUILD file. Use this as a start to creating your own,
# and remove these comments. 
# 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=""
Natanael Copa's avatar
Natanael Copa committed
13
license="GPL"
Natanael Copa's avatar
Natanael Copa committed
14 15 16
depends=""
makedepends=""
install=
Natanael Copa's avatar
Natanael Copa committed
17
subpackages="$pkgname-doc $pkgname-dev"
18
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
Natanael Copa's avatar
Natanael Copa committed
19 20 21 22

build() {
	cd "$srcdir/$pkgname-$pkgver"

Natanael Copa's avatar
Natanael Copa committed
23 24 25 26
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
Natanael Copa's avatar
Natanael Copa committed
27
	make || return 1
Natanael Copa's avatar
Natanael Copa committed
28
	make DESTDIR="$pkgdir" install
29 30 31

	# 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
32 33
}

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