2012-12-08 10:04:03 +08:00
|
|
|
pkgname=udisks2
|
2018-08-03 02:52:23 +08:00
|
|
|
pkgver=2.7.7
|
2017-10-25 04:16:58 +08:00
|
|
|
pkgrel=1
|
2012-12-08 10:04:03 +08:00
|
|
|
pkgdesc="Disk Management Service"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="http://www.freedesktop.org/wiki/Software/udisks"
|
2015-07-10 04:46:34 +08:00
|
|
|
license=('GPL2')
|
2017-10-25 04:16:58 +08:00
|
|
|
depends=('glib2' 'systemd' 'polkit' 'libatasmart' 'util-linux' 'libgudev' 'libblockdev')
|
|
|
|
makedepends=('intltool' 'docbook-xsl' 'gobject-introspection' 'python2' 'gnome-common' 'gtk-doc' 'libiscsi')
|
2015-07-10 04:46:34 +08:00
|
|
|
optdepends=('parted: partition management'
|
|
|
|
'gptfdisk: GUID partition table support'
|
|
|
|
'ntfs-3g: NTFS filesystem management support'
|
2017-10-25 04:16:58 +08:00
|
|
|
'dosfstools: VFAT filesystem management support'
|
|
|
|
'libiscsi: iSCSI support')
|
|
|
|
source=("https://github.com/storaged-project/udisks/archive/udisks-$pkgver.tar.gz")
|
2018-08-03 02:52:23 +08:00
|
|
|
sha512sums=('6e69a4d81ae9401deed7547f537456778f17718a35ecaf69f7636b0aa41d5ad62fb294440f23f4dfd089557b70bc154144e8317a505eaabc639b54e6b70e06e0')
|
2017-10-25 04:16:58 +08:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
sed -e 's/AC_MSG_ERROR(\[libstoragemgmt/AC_MSG_WARN([libstoragemgmt/' \
|
|
|
|
-e 's/AC_MSG_ERROR(\[libconfig/AC_MSG_WARN([libconfig/' \
|
|
|
|
-i udisks-udisks-$pkgver/configure.ac
|
|
|
|
}
|
2012-12-08 10:04:03 +08:00
|
|
|
|
|
|
|
build() {
|
2017-10-25 04:16:58 +08:00
|
|
|
cd udisks-udisks-$pkgver
|
|
|
|
./autogen.sh --prefix=/usr \
|
2015-11-19 13:16:52 +08:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system \
|
2017-10-25 04:16:58 +08:00
|
|
|
--disable-static
|
2012-12-08 10:04:03 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2017-10-25 04:16:58 +08:00
|
|
|
check() {
|
|
|
|
cd udisks-udisks-$pkgver
|
|
|
|
make check
|
|
|
|
}
|
|
|
|
|
2012-12-08 10:04:03 +08:00
|
|
|
package() {
|
2017-10-25 04:16:58 +08:00
|
|
|
cd udisks-udisks-$pkgver
|
2012-12-08 10:04:03 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
bash_completiondir=/usr/share/bash-completion/completions
|
|
|
|
}
|
2014-02-27 22:03:57 +08:00
|
|
|
|