From 780f5822875ea3024875bf9fc8de3aa73178957f Mon Sep 17 00:00:00 2001 From: Bogomil Vasilev Date: Thu, 5 Jul 2018 11:45:08 +0300 Subject: [PATCH] Add license to PKGBUILD and auto-increment version --- docs/distribution/archlinux/PKGBUILD | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/distribution/archlinux/PKGBUILD b/docs/distribution/archlinux/PKGBUILD index 70cc94c..7dfac28 100644 --- a/docs/distribution/archlinux/PKGBUILD +++ b/docs/distribution/archlinux/PKGBUILD @@ -2,19 +2,24 @@ # Just build via makepkg pkgname=rmps -pkgver=20180216.0 +pkgver=20180704.81f454a pkgrel=1 pkgdesc='Remote Management and Provisioning System' url='https://git.smirky.net/smirky/rmps.git/' arch=('i686' 'x86_64') depends=('libmariadbclient') validpgpkeys=('8C4D267F4977BFFEF23121E8646F3ABF6E457336') -source=("$pkgname::git+https://git.smirky.net/smirky/$pkgname.git") +source=("${pkgname}::git+https://git.smirky.net/smirky/${pkgname}.git") sha256sums=('SKIP') +license=('GPL2') backup=( etc/rmps/rmps.conf ) +pkgver() { + cd "${pkgname}" + echo "$(git log -1 --date=short --pretty=format:%cd|tr -d '-').$(git rev-parse --short HEAD)" +} build() { cd "${srcdir}/${pkgname}" @@ -25,3 +30,4 @@ package() { cd "${srcdir}/${pkgname}" make DESTDIR="${pkgdir}" install } +