summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 936ef01a2539b96c64818d4bf0c718a68407b7ef (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
# Maintainer: Alrii14344 <alrii14344@gmail.com>
# Maintainer: Kohei Suzuki <eagletmt@gmail.com>

pkgname=gce-compute-image-packages
pkgver=20180227
pkgrel=1
pkgdesc='Linux Guest Environment for Google Compute Engine'
arch=('x86_64')
url='https://github.com/GoogleCloudPlatform/compute-image-packages'
license=('Apache')
depends=('python-boto' 'python-setuptools' 'python-distro')
makedepends=('git')
source=("$pkgname-$pkgver"::'git://github.com/GoogleCloudPlatform/compute-image-packages.git')
# Because the sources are not static, skip Git checksum:
sha512sums=('SKIP')

package() {
  cd "$pkgname-$pkgver"

  python setup.py install --root="$pkgdir"
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  mkdir -p "$pkgdir/usr/lib/systemd/system"
  for unit in google_compute_engine_init/systemd/*.service
  do
    install -m644 "$unit" "$pkgdir/usr/lib/systemd/system/"
  done
}