Add stikkit-git

This commit is contained in:
Florian Bruhin 2014-05-27 10:53:10 +02:00
commit afd0a55ab5
2 changed files with 47 additions and 0 deletions

17
.SRCINFO Normal file
View file

@ -0,0 +1,17 @@
pkgbase = stikkit-git
pkgdesc = Commandline tool to upload pastes to stikked pastebins
pkgver = 1.0.4.r6.g446a4ee
pkgrel = 1
url = http://github.com/benapetr/stikkit
arch = i686
arch = x86_64
license = GPL
makedepends = git
makedepends = cmake
provides = stikkit
conflicts = stikkit
source = stikkit-git::git+https://github.com/benapetr/stikkit.git
md5sums = SKIP
pkgname = stikkit-git

30
PKGBUILD Normal file
View file

@ -0,0 +1,30 @@
# Maintainer: Florian Bruhin (The Compiler) <archlinux.org@the-compiler.org>
pkgname=stikkit-git
pkgver=1.0.4.r6.g446a4ee
pkgrel=1
pkgdesc="Commandline tool to upload pastes to stikked pastebins"
arch=('i686' 'x86_64')
url="http://github.com/benapetr/stikkit"
license=('GPL')
makedepends=('git' 'cmake')
conflicts=('stikkit')
provides=('stikkit')
source=("$pkgname"::'git+https://github.com/benapetr/stikkit.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
git describe --long | sed -E 's/^Release_//;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$pkgname/stikkit"
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
}
package() {
cd "$srcdir/$pkgname/stikkit"
make DESTDIR="$pkgdir" install
}