summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a546b35a310efd07ccc3e1c323d2c6d6b1dc2e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: GreenRaccoon23 <GreenRaccoon a t gmail d o t com>

pkgname=snzip
pkgver=20120803
pkgrel=1
pkgdesc="Snappy compression console utilite"
arch=(i686 x86_64)
url="https://github.com/kubo/snzip"
license=(bsd)
depends=(snappy)
makedepends=(git)

_gitroot="https://github.com/kubo/snzip.git"
_gitname="snzip"

build(){
  cd $srcdir
  if [[ -d "$_gitname" ]]; then
    cd "$_gitname"
    git reset --hard
    git clean -dxf
    git pull 
  else
    git clone "$_gitroot" "$_gitname"
    cd "$_gitname"
  fi

  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$_gitname"
  make install DESTDIR="$pkgdir" || true
}