summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0da551de01d8ccffd63cdd8d6c0ec985a811e254 (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
# Maintainer: Stefan Mark <mark at unserver dot de>

pkgname=nxhelper-git
_pkgname=nxhelper
pkgver=0.99
pkgrel=1
pkgdesc="Base helpers for NX"
url="https://git.weitnahbei.de/nullmark/nxhelper"
arch=('i686' 'x86_64')
license=('MIT')
depends=('nxlib' 'libx11')
makedepends=('git')
provides=('nxhelper')
conflicts=('nxhelper')
source=("$_pkgname::git+http://git.weitnahbei.de/nullmark/nxhelper")
sha256sums=('SKIP')

build() {
  cd $_pkgname
  make
}

package() {
  cd $_pkgname
  make PREFIX=/usr DESTDIR="$pkgdir" install
  mv "$pkgdir/usr/sbin/nxaabat" "$pkgdir/usr/sbin/nxpm" "$pkgdir/usr/sbin/nxsuspend" "$pkgdir/usr/sbin/nxsysdaemon" "$pkgdir/usr/bin"
  rmdir "$pkgdir/usr/sbin"
  install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -m644 -D README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}