# $Id: PKGBUILD 122955 2014-11-22 20:47:25Z bpiotrowski $
# Maintainer:  Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: naelstrof <naelstrof@gmail.com>

pkgname=slop
pkgver=3.1.15
pkgrel=1
pkgdesc='Utility to query the user for a selection and print the region to stdout'
arch=('i686' 'x86_64')
url='https://github.com/naelstrof/slop'
license=('GPL3')
depends=('libxext' 'libx11' 'gcc-libs')
makedepends=('cmake')
source=($url/archive/v$pkgver.tar.gz)
md5sums=('2451cca9119740ec168a64d5f59821e1')

build() {
  cd $pkgname-$pkgver
  cmake -DCMAKE_INSTALL_PREFIX=/usr/bin . .
  make
}

package() {
  make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
}
