aboutsummaryrefslogblamecommitdiffstats
path: root/core/lvm2/APKBUILD
blob: 59384f4879cdd12c79ea2a5ab8f0b9281da92052 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
              
        


                                            
        
                          


                                                              


















                                                                     
                                                                   
 
                                                           
                                            
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lvm2
pkgver=2.02.47
pkgrel=0
pkgdesc="Logical Volume Manager 2 utilities"
url="http://sourceware.org/lvm2/"
license="GPL"
depends=
makedepends="readline-dev"
source="ftp://sources.redhat.com/pub/$pkgname/LVM2.$pkgver.tgz
	lvm.initd
	"
subpackages="$pkgname-dev $pkgname-doc"

build () {
	cd "$srcdir"/LVM2.$pkgver

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--libdir=/lib \
		--sbindir=/sbin \
		--localstatedir=/var \
		--disable-nls \
		CLDFLAGS="$LDFLAGS" \
		|| return 1

	# TODO: fix parallel builds
	make -j1 || return 1
	make -j1 DESTDIR="$pkgdir" install || return 1

	install -d "$pkgdir"/etc/lvm/archive "$pkgdir"/etc/lvm/backup
	install -Dm755 "$srcdir"/lvm.initd "$pkgdir"/etc/init.d/lvm
}
md5sums="669d57ff97d171fd4e077c61da1f9a34  LVM2.2.02.47.tgz
e60d88f78eedb9c1252deb5b9b9b978b  lvm.initd"