summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f622f378d01c4d37ecf154759472ef38ddbd35ab (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
43
44
45
46
# Maintainer: Platon Ryzhikov <ihummer63@yandex.ru>

pkgbase=nldev-phkr
pkgname=nldev
pkgver=0.3
pkgrel=6
pkgdesc="frontend for mdev, replacing the over-engineered udevd"
url="http://git.r-36.net/nldev/"
arch=('i686' 'x86_64' 'aarch64')
makedepends=(git)
license=('MIT')
_commit=e0713f6
source=("git://git.r-36.net/nldev#commit=$_commit"
        "0000-change_shell.patch"
        "0001-increase_buffer.patch"
		'config.mk'
        'hook'
        'install')
md5sums=('SKIP'
         'f96e7f40e2f4c5378c93c5cc97d4185d'
         '508367c15bf5117870c7dc0765cba2b9'
         '1c4dcaf94bebdcb8f47a520776fd9ee0'
         '613a765dc1e0c2f203dbfae452f346ed'
         'af9a39fb39a042e10f92257efb159154')

prepare() {
	cd "${srcdir}/${pkgname}"
	patch -Np1 -i ../0000-change_shell.patch
	patch -Np1 -i ../0001-increase_buffer.patch

	cp ../config.mk ./
}

build() {
  cd "$srcdir/$pkgname"
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir" PREFIX=/usr install
  install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  cd "$srcdir"
  install -m644 -D hook "$pkgdir/usr/lib/initcpio/hooks/nldev"
  install -m644 -D install "$pkgdir/usr/lib/initcpio/install/nldev"
}