summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 925e2d46ceeaca28507ab427aa0227f308857ecb (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
# Contributor: sputnick <gilles DOT quenot AT gmail DOT com>
pkgname=sysrqd
pkgver=v14.r0.ge9479f8
pkgrel=1
pkgdesc="A small daemon intended to manage Linux Sysrq over network."
arch=('i686' 'x86_64')
url="http://julien.danjou.info/software/$pkgname"
license="GPL"
install="${pkgname}.install"
conflicts=('sysrqd')
provides=('sysrqd')

#_gitroot="$_pkgname::git+https://github.com/jd/sysrqd"
#_gitname=$pkgname

source=( "$pkgname::git+https://github.com/jd/sysrqd.git" )
md5sums=('SKIP')


build() {
  cd $pkgname
  make
}

###
sha256sums=('SKIP')

pkgver() {
    cd ${srcdir}/${pkgname}
    git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

package() {
   cd ${srcdir}/${pkgname}
   install -Dm755 "$srcdir/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
}