summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f58eb9f34e7e974670ddb8a70f60a9a8fcc221d (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
# Maintainer: Slithery <aur at slithery dot uk>
# Maintainer: Zack Buhman <zbuhman@linode.com>
# Contributor: Graham Edgecombe <graham@grahamedgecombe.com>

pkgname=linode-cli
pkgver=1.3.2
pkgrel=2
pkgdesc='A simple command-line interface to the Linode platform'
url='https://github.com/linode/cli'
license=('GPL2')
arch=('any')
depends=('perl-try-tiny' 'perl-libwww' 'perl-json' 'perl-crypt-ssleay'
         'perl-mozilla-ca' 'perl-webservice-linode')
makedepends=('git')
source=("$pkgname::git+https://github.com/linode/cli.git#tag=v$pkgver")
sha256sums=('SKIP')

build() {
  cd "$pkgname"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$pkgname"
  make install DESTDIR="$pkgdir"
}