~moody/pkgbuild

fa18194a307ae6c953478c37dac39e8876f5a306 — Jacob Moody 6 months ago master
add passage-git
1 files changed, 53 insertions(+), 0 deletions(-)

A passage-git/PKGBUILD
A  => passage-git/PKGBUILD +53 -0
@@ 1,53 @@
# 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'.

# The following guidelines are specific to BZR, GIT, HG and SVN packages.
# Other VCS sources are not natively supported by makepkg yet.

# Maintainer: Your Name <youremail@domain.com>
pkgname=passage-git
pkgver=r514.fc246c2
pkgrel=1
pkgdesc=""
arch=('any')
url=""
license=('GPL')
groups=()
depends=('age')
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-VCS}")
conflicts=("${pkgname%-VCS}")
replaces=()
backup=()
options=()
install=
source=('passage-git::git+https://github.com/FiloSottile/passage.git#commit=fc246c2776594ff7420d01b911fd84292458b126')
noextract=()
md5sums=('SKIP')

# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for
# a description of each element in the source array.

pkgver() {
	cd "$srcdir/${pkgname%-VCS}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd $srcdir
}

build() {
	cd $srcdir
}

check() {
	cd $srcdir
}

package() {
	cd "$srcdir/${pkgname%-VCS}"
	make WITH_FISHCOMP=no DESTDIR="$pkgdir/" install
}