| 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]> |
| 8 | pkgname=NAME |
| 9 | pkgver=VERSION |
| 10 | pkgrel=0 |
| 11 | pkgdesc="" |
| 12 | url="" |
| 13 | arch="all" |
| 14 | license="GPL" |
| 15 | depends= |
| 16 | depends_dev= |
| 17 | makedepends="$depends_dev" |
| 18 | install= |
| 19 | subpackages="$pkgname-dev $pkgname-doc" |
| 20 | source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" |
| 21 | |
| 22 | builddir="$srcdir"/$pkgname-$pkgver |
| 23 | |
| 24 | prepare() { |
| 25 | cd "$builddir" |
| 26 | } |
| 27 | |
| 28 | build() { |
| 29 | cd "$builddir" |
| 30 | ./configure --prefix=/usr \ |
| 31 | --sysconfdir=/etc \ |
| 32 | --mandir=/usr/share/man \ |
| 33 | --infodir=/usr/share/info |
| 34 | make |
| 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 | # 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 | |
| 46 | check() { |
| 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 | |
| 53 | md5sums="" #generate with 'abuild checksum' |