[ create a new paste ] login | about

Link: http://codepad.org/jl9MOalb    [ raw code | fork ]

Plain Text, pasted on Jul 25:
# Maintainer: Jens Staal <staal1978@gmail.com>
# Contributor: Sascha Biermmanns <saschakb at gmail dot com>
# Contributor: Christian Hesse <mail@eworm.de>

pkgname=sbase-git
pkgver=0.r199.g50d9305
pkgrel=2
pkgdesc="A suckless variant of the *nix core utilities - git checkout"
arch=('i686' 'x86_64')
license=('MIT')
url="http://git.suckless.org/sbase"
makedepends=('git')
source=('git://git.suckless.org/sbase'
	'http://www.eworm.de/download/linux/sbase-man-test.patch')
sha256sums=('SKIP'
	'6794688b599fd8df91e1fc5a723d2bdb3f92e4d06c04b6c2f9e8f6896732d2a7')

pkgver() {
	cd sbase/

	if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
		echo "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG}).r$(git rev-list --count ${GITTAG}..).g$(git log -1 --format="%h")"
	else
		echo "0.r$(git rev-list --count master).g$(git log -1 --format="%h")"
	fi
}

build() {
	cd sbase/

	make

	patch -Np1 < ${srcdir}/sbase-man-test.patch
}

package() {
	cd sbase/
  
	make DESTDIR=${pkgdir} PREFIX=/opt/sbase MANPREFIX=/opt/sbase/man install 
	install -D -m0644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}



Create a new paste based on this one


Comments: