diff options
author | yar | 2015-10-31 17:00:23 -0700 |
---|---|---|
committer | yar | 2015-10-31 17:00:23 -0700 |
commit | 10d719b959c14fa3d82db5997c29c765dca7965c (patch) | |
tree | d6e636ec826c8566241b073e92f141df8318627b | |
parent | 1cc615f53791ef535674877312c3822fda3534cd (diff) | |
download | aur-10d719b959c14fa3d82db5997c29c765dca7965c.tar.gz |
convert to git
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 17 |
3 files changed, 20 insertions, 12 deletions
@@ -1,13 +1,13 @@ -pkgbase = eml2mbox +pkgbase = eml2mbox-git pkgdesc = Converts a bunch of eml files into one mbox file - pkgver = 0.14 + pkgver = 21.67dd53a pkgrel = 1 url = https://github.com/yardenac/eml2mbox arch = any license = LGPL2.1 depends = ruby>=2.0.0_p0-1 - source = https://raw.github.com/yardenac/eml2mbox/master/eml2mbox.rb - sha512sums = 21687b7c099346627819c1ce9ad28ee0ca62abfc288b7553f4d59e45067deedfedeabbcfba58ac5b4619542632e0f01b42d54cab732fe83c9787c9b15473bea2 + source = git+https://github.com/yardenac/eml2mbox.git + sha512sums = SKIP -pkgname = eml2mbox +pkgname = eml2mbox-git diff --git a/.gitignore b/.gitignore index e763bc0958cd..cb768b818545 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ -eml2mbox-*-package.log -eml2mbox.rb +eml2mbox-git-*-package.log +eml2mbox-git-*-pkgver.log +eml2mbox/ @@ -1,14 +1,21 @@ -pkgname=eml2mbox -pkgver=0.14 +gitname=eml2mbox +pkgname=${gitname}-git +pkgver=21.67dd53a pkgrel=1 pkgdesc="Converts a bunch of eml files into one mbox file" arch=('any') -url="https://github.com/yardenac/eml2mbox" +url="https://github.com/yardenac/${gitname}" license=('LGPL2.1') depends=('ruby>=2.0.0_p0-1') -source=('https://raw.github.com/yardenac/eml2mbox/master/eml2mbox.rb') -sha512sums=('21687b7c099346627819c1ce9ad28ee0ca62abfc288b7553f4d59e45067deedfedeabbcfba58ac5b4619542632e0f01b42d54cab732fe83c9787c9b15473bea2') +source=("git+$url.git") +sha512sums=('SKIP') +pkgver() { + cd "${srcdir}/${gitname}" + local ver="$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" + printf "%s" "${ver//-/.}" +} package() { + cd "${srcdir}/${gitname}" install -Dm 755 eml2mbox.rb "${pkgdir}/usr/bin/eml2mbox" } |