sample.APKBUILD 1.07 KB
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=
17
subpackages="$pkgname-dev $pkgname-doc"
18
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
Natanael Copa's avatar
Natanael Copa committed
19

20 21 22 23
# append extra dependencies to -dev subpackage
# remove if not used.
# depends_dev="somepackage-dev"

Natanael Copa's avatar
Natanael Copa committed
24
build() {
25
	cd "$srcdir"/$pkgname-$pkgver
Natanael Copa's avatar
Natanael Copa committed
26

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

34
	# remove the 2 lines below (and this) if there is no init.d script
35 36
	# 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
37 38
}

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