summaryrefslogtreecommitdiff
path: root/community/swarp/PKGBUILD
blob: 452a0aba8e63f834e20d6231a1b38a475bf2697f (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
# $Id: PKGBUILD 65469 2012-02-21 05:57:41Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Dag Odenhall <dag.odenhall@gmail.com>

pkgname=swarp
pkgver=0.1
pkgrel=3
pkgdesc="Simple pointer warp"
license=('MIT')
arch=(i686 x86_64)
url="http://tools.suckless.org/"
depends=(glibc libx11)
source=(http://dl.suckless.org/tools/swarp-$pkgver.tar.gz
	config.mk)
md5sums=('b674dd2f33c45cbd789e4b6e09b7b55e'
         '6fccb02af362a7284df689eea053a154')

build() {
  cd $srcdir/$pkgname-$pkgver
  cp $srcdir/config.mk .
  sed -i "s/%VERSION%/$pkgver/g" config.mk
  sed -i "s/%CFLAGS%/$CFLAGS/g" config.mk

  make
  make DESTDIR=$pkgdir install

  install -m644 -D LICENSE $pkgdir/usr/share/licenses/$pkgname/COPYING
}