Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 66c3cbe

Browse files
committed
upgpkg: cloud-utils 0.32-1
git-svn-id: file:///srv/repos/svn-community/svn@744666 9fca08f4-af9d-4005-b8df-a31f2cc04f65
1 parent 8b22070 commit 66c3cbe

File tree

1 file changed

+38
-13
lines changed

1 file changed

+38
-13
lines changed

cloud-utils/trunk/PKGBUILD

+38-13
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,46 @@
11
# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
22

3-
pkgname=cloud-utils
4-
pkgver=0.31
5-
pkgrel=2
6-
pkgdesc="Useful set of utilities for interacting with a cloud"
3+
pkgbase=cloud-utils
4+
pkgname=(cloud-utils cloud-guest-utils cloud-image-utils)
5+
pkgver=0.32
6+
pkgrel=1
77
url="https://launchpad.net/cloud-utils"
8-
depends=('e2fsprogs' 'python' 'gptfdisk' 'ca-certificates' 'file' 'cdrtools' 'qemu-headless' 'wget')
98
arch=('any')
109
license=('GPL3')
11-
source=("https://launchpad.net/cloud-utils/trunk/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz")
12-
b2sums=('78216f9dbff8b0f02be0f353079c93fc327a60113661583cbfd11dbe439b13133d5d33c679583a4109d309b78709f1d121e0c3ee42e35d5b3f25690ca6b3df3b')
13-
14-
package() {
15-
cd "${pkgname}-${pkgver}"
16-
make DESTDIR="${pkgdir}/" install
17-
# clean up empty usr/share/doc/cloud-utils/
18-
find "${pkgdir}" -type d -empty -delete
10+
source=("https://launchpad.net/cloud-utils/trunk/${pkgver}/+download/${pkgbase}-${pkgver}.tar.gz")
11+
b2sums=('87233a0f2b62f6df15a8d8575ec9a176fa588b5ff42f4e13cc8a071d486b6192d53e1c989f13bb91e6ae84c0a2066c9e43554a8f0acf3026fcb641e4a512508c')
12+
13+
package_cloud-utils() {
14+
pkgdesc="Useful set of utilities for interacting with a cloud (meta package)"
15+
depends=('cloud-guest-utils' 'cloud-image-utils')
16+
}
17+
18+
package_cloud-guest-utils() {
19+
pkgdesc="Useful set of utilities for interacting with a cloud (cloud guests)"
20+
depends=('python')
21+
22+
cd "${pkgbase}-${pkgver}"
23+
24+
for bin in ec2metadata growpart vcs-run; do
25+
install -Dm 755 "bin/${bin}" -t "${pkgdir}/usr/bin"
26+
done
27+
28+
install -Dm 644 "man/growpart.1" -t "${pkgdir}/usr/share/man/man1"
29+
}
30+
31+
package_cloud-image-utils() {
32+
pkgdesc="Useful set of utilities for interacting with a cloud (cloud images)"
33+
depends=('python' 'ca-certificates' 'cdrtools' 'qemu-headless' 'wget')
34+
35+
cd "${pkgbase}-${pkgver}"
36+
37+
for bin in cloud-localds mount-image-callback resize-part-image ubuntu-cloudimg-query write-mime-multipart; do
38+
install -Dm 755 "bin/${bin}" -t "${pkgdir}/usr/bin"
39+
done
40+
41+
for man in cloud-localds resize-part-image write-mime-multipart; do
42+
install -Dm 644 "man/${man}.1" -t "${pkgdir}/usr/share/man/man1"
43+
done
1944
}
2045

2146
# vim:set ts=2 sw=2 et:

0 commit comments

Comments
 (0)