diff options
author | Narrat | 2015-06-17 00:53:09 +0200 |
---|---|---|
committer | Narrat | 2015-06-17 00:53:09 +0200 |
commit | 2a01106a76425d2ace9eddf7096efc14434e8ef4 (patch) | |
tree | 38d7a55c108ccbbd5979e996f28e38a3daea947d /PKGBUILD | |
parent | a934973f8623f0348587e07ae210fd43212613af (diff) | |
download | aur-2a01106a76425d2ace9eddf7096efc14434e8ef4.tar.gz |
Correcthorse-git: Update to latest guidelines
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 44 |
1 files changed, 15 insertions, 29 deletions
@@ -1,50 +1,36 @@ -# This is an example PKGBUILD file. Use this as a start to creating your own, -# and remove these comments. For more information, see 'man PKGBUILD'. -# NOTE: Please fill out the license field for your package! If it is unknown, -# then please put 'unknown'. +# Contributor: Lex Black <autumn-wind at web dot de> +# Contributor: Robin Martinjak <rob@rmartinjak.de> -# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines -# for more information on packaging from GIT sources. - -# Maintainer: Robin Martinjak <rob@rmartinjak.de> +_gitname=correcthorse pkgname=correcthorse-git -pkgver=20120609 +pkgver=1.0.r23.g2a214af pkgrel=1 -pkgdesc="Passphrase generator based on http://xkcd.com/936/" +pkgdesc="Passphrase generator based on https://xkcd.com/936/" arch=('i686' 'x86_64') url="https://github.com/rmartinjak/correcthorse" license=('WTFPL') makedepends=('git') provides=('correcthorse') conflicts=('correcthorse') +source=(git://github.com/rmartinjak/correcthorse.git) +md5sums=('SKIP') -_gitroot=https://github.com/rmartinjak/correcthorse.git -_gitname=correcthorse - -build() { - cd "$srcdir" - msg "Connecting to GIT server...." - if [[ -d "$_gitname" ]]; then - cd "$_gitname" && git pull origin - msg "The local files are updated." - else - git clone "$_gitroot" "$_gitname" --depth=1 - fi +pkgver() { + cd "$_gitname" - msg "GIT checkout done or server timeout" - msg "Starting build..." - - rm -rf "$srcdir/$_gitname-build" - cd "$srcdir/$_gitname" && git archive --format=tar --prefix="$_gitname-build/" HEAD | (cd "$srcdir/" && tar xf -) + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//' +} - cd "$srcdir/$_gitname-build" +build() { + cd "$_gitname" make PREFIX=/usr } package() { - cd "$srcdir/$_gitname-build" + cd "$_gitname" + make DESTDIR="$pkgdir/" PREFIX=/usr install } |