sample.APKBUILD: rename _builddir to builddir
This commit is contained in:
parent
9de1cfbf03
commit
8c92572bed
@ -1,5 +1,5 @@
|
|||||||
# This is an example APKBUILD file. Use this as a start to creating your own,
|
# This is an example APKBUILD file. Use this as a start to creating your own,
|
||||||
# and remove these comments.
|
# and remove these comments.
|
||||||
# NOTE: Please fill out the license field for your package! If it is unknown,
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
||||||
# then please put 'unknown'.
|
# then please put 'unknown'.
|
||||||
|
|
||||||
@ -19,16 +19,14 @@ install=
|
|||||||
subpackages="$pkgname-dev $pkgname-doc"
|
subpackages="$pkgname-dev $pkgname-doc"
|
||||||
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
|
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
|
||||||
|
|
||||||
|
builddir="$srcdir"/$pkgname-$pkgver
|
||||||
_builddir="$srcdir"/$pkgname-$pkgver
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
# apply patches here
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
./configure --prefix=/usr \
|
./configure --prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--mandir=/usr/share/man \
|
--mandir=/usr/share/man \
|
||||||
@ -37,8 +35,8 @@ build() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
make DESTDIR="$pkgdir" install
|
make DESTDIR="$pkgdir" install || return 1
|
||||||
|
|
||||||
# remove the 2 lines below (and this) if there is no init.d script
|
# remove the 2 lines below (and this) if there is no init.d script
|
||||||
# install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
# install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
|
||||||
|
Loading…
x
Reference in New Issue
Block a user