summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f93f3eedee6862a8f73859a7904e445bb91d725 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Md. Jahidul Hamid <jahidulhamid@yahoo.com>
pkgname=gencsr
pkgver=0.0.4
pkgrel=1
pkgdesc="Simple CSR generator"
download_branch=release
arch=(any)
url="https://github.com/neurobin/gencsr"
license=('BSD')
depends=(bash openssl)
source=( "https://github.com/neurobin/$pkgname/archive/$download_branch.tar.gz" )
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/$pkgname-$download_branch"
  ./$pkgname -v | grep -P 'Version:.*' |grep -oP '[\d.]+$'
}


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