summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a4e81076cac7d46a638fcf909a9f262808c9edce (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
# Maintainer: Jameson Pugh <imntreal@gmail.com>

pkgname=iwd-git
pkgver=r2423.5c5bfbb
pkgrel=1
pkgdesc='Internet Wireless Daemon'
arch=('i686' 'x86_64')
url='https://git.kernel.org/cgit/network/wireless/iwd.git/'
license=('LGPL')
depends=('glibc')
makedepends=('git')
provides=('iwd')
conflicts=('iwd')
source=('git+https://git.kernel.org/pub/scm/network/wireless/iwd.git'
				'git+https://git.kernel.org/pub/scm/libs/ell/ell.git')
sha256sums=('SKIP' 'SKIP')
_gitname='iwd'

pkgver() {
  cd "${_gitname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

prepare() {
	cd "${srcdir}/${_gitname}"
	./bootstrap
}

build() {
  cd "${srcdir}/${_gitname}"

	./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/iwd --localstatedir=/var
  make
}

package() {
  cd "${srcdir}/${_gitname}"

  make install DESTDIR="${pkgdir}"
}

# vim: set ts=2 sw=2 ft=sh noet: