mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-22 07:00:28 +00:00
sample: use separate package()
This commit is contained in:
parent
3ea1ead589
commit
5847b5473b
@ -11,8 +11,8 @@ pkgrel=0
|
||||
pkgdesc=""
|
||||
url=""
|
||||
license="GPL"
|
||||
depends=""
|
||||
makedepends=""
|
||||
depends=
|
||||
makedepends=
|
||||
install=
|
||||
subpackages="$pkgname-dev $pkgname-doc"
|
||||
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
|
||||
@ -21,14 +21,24 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
|
||||
# remove if not used.
|
||||
# depends_dev="somepackage-dev"
|
||||
|
||||
build() {
|
||||
cd "$srcdir"/$pkgname-$pkgver
|
||||
_builddir="$srcdir"/$pkgname-$pkgver
|
||||
|
||||
prepare() {
|
||||
cd "$_builddir"
|
||||
# apply patches here
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/share/man \
|
||||
--infodir=/usr/share/info
|
||||
make || return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
# remove the 2 lines below (and this) if there is no init.d script
|
||||
|
Loading…
Reference in New Issue
Block a user