Skip to content

Instantly share code, notes, and snippets.

@dvtate
Created June 30, 2020 03:10
Show Gist options
  • Save dvtate/a4ce175f0446403c7250f8e6dab1b335 to your computer and use it in GitHub Desktop.
Save dvtate/a4ce175f0446403c7250f8e6dab1b335 to your computer and use it in GitHub Desktop.
# Developer: qorg11
# Maintainer: Dustin Testa <[email protected]>
pkgname=lainsafecli
pkgver=0.4.r0.g47312a4 # updated by pkgver()
pkgrel=1
pkgdesc="CLI interface for lainsafe"
arch=('any')
url='https://github.com/qorg11/lainsafe'
license=('GPL')
makedepends=('git')
depends=('perl' 'perl-lwp-protocol-https' 'perl-crypt-ssleay' 'perl-libwww')
md5sums=('SKIP')
provides=('lainsafecli')
source=("$pkgname::git+https://github.com/qorg11/lainsafe")
pkgver() {
cd $pkgname
git describe --tags --long | sed -r -e 's,^[^0-9]*,,;s,([^-]*-g),r\1,;s,[-_],.,g'
}
package() {
cd $pkgname
mkdir $pkgdir/usr/
mkdir $pkgdir/usr/bin/
install -D -m755 lainsafecli $pkgdir/usr/bin/lainsafecli
install -D -m644 COPYING $pkgdir/usr/share/licenses/${pkgname}/LICENSE
}
@rfc-2549
Copy link

rfc-2549 commented Sep 7, 2020

based

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment