summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8160ed7b8c38139a7193ae164b9c9607ac543704 (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
37
38
39
40
41
42
# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
# Maintainer:  Alad Wenter <https://wiki.archlinux.org/index.php/Special:EmailUser/Alad>

pkgname=cottage-git
_pkgname=cottage
pkgver=94f2379
pkgrel=4

pkgdesc="Use howm commands, operators and set configuration values through a UNIX socket."
arch=('i686' 'x86_64')
url="https://github.com/HarveyHunt/cottage"
license=('GPL')

checkdepends=('linux-headers')
options=('!strip' 'debug')
source=("git+https://github.com/HarveyHunt/cottage#branch=master")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git rev-parse --short HEAD
}

build() {
  cd "$_pkgname"
  make debug
}

check() {
  cd "$_pkgname"
  find /usr/lib/modules -name checkpatch.pl -print -quit | xargs -i cp {} .

  echo "spellingtxt||getoutofmyface" > spelling.txt
  make check
}

package() {
  cd "$_pkgname"
  install -Dm755 "bin/debug/cottage" "$pkgdir/usr/bin/cottage"
}

# vim:set ts=2 sw=2 et: