blob: 211c9698a3596e64b359939b1fc21ac664dc3a62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=udisks2
pkgver=2.1.3
pkgrel=0
pkgdesc="A Disk Manager"
url="http://www.freedesktop.org/wiki/Software/udisks"
arch="all"
license="GPL2+"
depends=""
depends_dev="glib-dev gobject-introspection-dev polkit-dev libatasmart-dev
udev-dev acl-dev"
makedepends="$depends_dev intltool gtk-doc"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs"
source="http://udisks.freedesktop.org/releases/udisks-$pkgver.tar.bz2
O_CLOEXEC.patch
sys-wait.patch
fix-stdio.patch
"
_builddir="$srcdir"/udisks-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-compile-warnings=minimum \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la
}
libs() {
pkgdesc="Dynamic library to access the udisks daemon"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/lib*.so.* \
"$pkgdir"/usr/lib/girepository* \
"$subpkgdir"/usr/lib/
}
md5sums="f2c793f839058371d1e93a654199438d udisks-2.1.3.tar.bz2
fd70ee4163c5bfd9bd474c28a2548c46 O_CLOEXEC.patch
4c7aa82c180c809f565c55325ce9eb20 sys-wait.patch
0cf34713e15675760cf547e36ac13683 fix-stdio.patch"
sha256sums="5cc92fd651ee49a7888f90d091282b949afc629b31fdb34e187208750720632d udisks-2.1.3.tar.bz2
2c325c131e8d66d09ec3ec4f2c022113822c494da37dd2316d87ac4dc721c82b O_CLOEXEC.patch
ed4c6a17a97cc01854c7adde56984cade1da8a58f41c30788f5bcdc428ff26ca sys-wait.patch
abb9a09fff960eb0ffadd9ba27a2fdff37c7674d9c42ba20251e7ff7b23ba1f1 fix-stdio.patch"
sha512sums="52f15ecdb700e91919ce0e2017aa1c185afaf86d936036a0a380b91b322c3d949263c09c16fe02fbe7385c0d0055ca3ddc5f6b69ed3ea87df3acc78413aef494 udisks-2.1.3.tar.bz2
269ba55cc755e2a484670258bc530790691b66c9fce9479a2a17d78cff5d52dd1be89290979efd44a0ba82be665f52a356a57f2cbb67951d91fe09d4e24c2a6a O_CLOEXEC.patch
138593a97a35ba405e65d8f207fb16f4e056c09e3f4a51edd4ee8f8aeb37914663bbf0b016a5a0055ef5ec5191f850a3680f1f47fe0b07e9abe0ce01d2c0af0d sys-wait.patch
205a3a51170082f05c546a3185a929e0aa2659bfdc46e48b8bf48fd12a44ed7e08c41603e32aee670b9303f9791372db9188389b0a8df3f08e9d3fe2be4c67cb fix-stdio.patch"
|