[arch-commits] Commit in cloud-utils/trunk (PKGBUILD)
Kpcyrd
kpcyrd at archlinux.org
Fri Nov 6 22:19:54 UTC 2020
Date: Friday, November 6, 2020 @ 22:19:53
Author: kpcyrd
Revision: 744666
upgpkg: cloud-utils 0.32-1
Modified:
cloud-utils/trunk/PKGBUILD
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++------------
1 file changed, 37 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-06 22:19:27 UTC (rev 744665)
+++ PKGBUILD 2020-11-06 22:19:53 UTC (rev 744666)
@@ -1,21 +1,46 @@
# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
-pkgname=cloud-utils
-pkgver=0.31
-pkgrel=2
-pkgdesc="Useful set of utilities for interacting with a cloud"
+pkgbase=cloud-utils
+pkgname=(cloud-utils cloud-guest-utils cloud-image-utils)
+pkgver=0.32
+pkgrel=1
url="https://launchpad.net/cloud-utils"
-depends=('e2fsprogs' 'python' 'gptfdisk' 'ca-certificates' 'file' 'cdrtools' 'qemu-headless' 'wget')
arch=('any')
license=('GPL3')
-source=("https://launchpad.net/cloud-utils/trunk/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz")
-b2sums=('78216f9dbff8b0f02be0f353079c93fc327a60113661583cbfd11dbe439b13133d5d33c679583a4109d309b78709f1d121e0c3ee42e35d5b3f25690ca6b3df3b')
+source=("https://launchpad.net/cloud-utils/trunk/${pkgver}/+download/${pkgbase}-${pkgver}.tar.gz")
+b2sums=('87233a0f2b62f6df15a8d8575ec9a176fa588b5ff42f4e13cc8a071d486b6192d53e1c989f13bb91e6ae84c0a2066c9e43554a8f0acf3026fcb641e4a512508c')
-package() {
- cd "${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}/" install
- # clean up empty usr/share/doc/cloud-utils/
- find "${pkgdir}" -type d -empty -delete
+package_cloud-utils() {
+ pkgdesc="Useful set of utilities for interacting with a cloud (meta package)"
+ depends=('cloud-guest-utils' 'cloud-image-utils')
}
+package_cloud-guest-utils() {
+ pkgdesc="Useful set of utilities for interacting with a cloud (cloud guests)"
+ depends=('python')
+
+ cd "${pkgbase}-${pkgver}"
+
+ for bin in ec2metadata growpart vcs-run; do
+ install -Dm 755 "bin/${bin}" -t "${pkgdir}/usr/bin"
+ done
+
+ install -Dm 644 "man/growpart.1" -t "${pkgdir}/usr/share/man/man1"
+}
+
+package_cloud-image-utils() {
+ pkgdesc="Useful set of utilities for interacting with a cloud (cloud images)"
+ depends=('python' 'ca-certificates' 'cdrtools' 'qemu-headless' 'wget')
+
+ cd "${pkgbase}-${pkgver}"
+
+ for bin in cloud-localds mount-image-callback resize-part-image ubuntu-cloudimg-query write-mime-multipart; do
+ install -Dm 755 "bin/${bin}" -t "${pkgdir}/usr/bin"
+ done
+
+ for man in cloud-localds resize-part-image write-mime-multipart; do
+ install -Dm 644 "man/${man}.1" -t "${pkgdir}/usr/share/man/man1"
+ done
+}
+
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list