projects/aports·blob v3.3.0_pre1 · refs

53 lines · 1.3 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="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
21
22builddir="$srcdir"/$pkgname-$pkgver
23
24prepare() {
25 cd "$builddir"
26}
27
28build() {
29 cd "$builddir"
30 ./configure --prefix=/usr \
31 --sysconfdir=/etc \
32 --mandir=/usr/share/man \
33 --infodir=/usr/share/info
34 make
35}
36
37package() {
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 # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
43 # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
44}
45
46check() {
47 # uncomment the 2 lines below if there is a testsuite. we assume the testsuite
48 # is run using "make check", which is the default for autotools-based build systems.
49 # cd "$builddir"
50 # make check
51}
52
53md5sums="" #generate with 'abuild checksum'