Skip to content
Snippets Groups Projects
Commit 5847b547 authored by Natanael Copa's avatar Natanael Copa
Browse files

sample: use separate package()

parent 3ea1ead5
No related branches found
No related tags found
No related merge requests found
...@@ -11,8 +11,8 @@ pkgrel=0 ...@@ -11,8 +11,8 @@ pkgrel=0
pkgdesc="" pkgdesc=""
url="" url=""
license="GPL" license="GPL"
depends="" depends=
makedepends="" makedepends=
install= 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"
...@@ -21,14 +21,24 @@ 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. # remove if not used.
# depends_dev="somepackage-dev" # depends_dev="somepackage-dev"
build() { _builddir="$srcdir"/$pkgname-$pkgver
cd "$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
# apply patches here
}
build() {
cd "$_builddir"
./configure --prefix=/usr \ ./configure --prefix=/usr \
--sysconfdir=/etc \ --sysconfdir=/etc \
--mandir=/usr/share/man \ --mandir=/usr/share/man \
--infodir=/usr/share/info --infodir=/usr/share/info
make || return 1 make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
# 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment