summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 677a43de0e33823b39b32488fffdea35e55a5cd9 (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
# Maintainer: nous at artixlinux org
# Contributor: sputnick <gilles DOT quenot AT gmail DOT com>
pkgname=sysrqd
pkgver=17
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-git')
provides=("sysrqd=v${pkgver}")

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

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


build() {
  cd $pkgname
  make
}

###

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

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