mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 05:04:45 +08:00
31 lines
909 B
Bash
31 lines
909 B
Bash
pkgname=libblockdev
|
|
pkgver=2.18
|
|
pkgrel=1
|
|
pkgdesc="A library for manipulating block devices"
|
|
arch=('x86_64')
|
|
url="https://github.com/rhinstaller/libblockdev"
|
|
license=('LGPL')
|
|
depends=('btrfs-progs' 'dosfstools' 'dmraid' 'gptfdisk' 'libbytesize' 'lvm2' 'mdadm' 'parted'
|
|
'volume_key' 'xfsprogs' 'kmod' 'libyaml' 'ndctl')
|
|
makedepends=('gobject-introspection' 'systemd' 'python')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/rhinstaller/libblockdev/archive/$pkgver-1.tar.gz")
|
|
sha512sums=('c7837b0abb7747baf8dc2a21a0a75bc5fb80693a1685ddb310bf7d606d44ea65fa4c934cff6c09c5069806dea3ee056eb53c64122ec43b5c0485cdf92fda58d5')
|
|
|
|
|
|
build() {
|
|
cd "$srcdir"/$pkgname-$pkgver-1
|
|
./autogen.sh
|
|
./configure --prefix=/usr --sysconfdir=/etc --without-lvm_dbus
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$srcdir"/$pkgname-$pkgver-1
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir"/$pkgname-$pkgver-1
|
|
make DESTDIR="$pkgdir" install
|
|
}
|