blob: 7653db45589d888611556e94a684740dd08a9ff9 (
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
47
48
|
# Maintainer: Luka Perkov <luka.perkov@sartura.hr>
pkgname=rpcd-git
_gitname=rpcd
pkgver=r131.23417e9
pkgrel=1
pkgdesc='OpenWrt ubus RPC backend server'
url='http://git.openwrt.org/?p=project/rpcd.git;a=summary'
arch=('i686' 'x86_64')
license=('ISC')
depends=('libubox-lua-git' 'ubus-lua-git' 'uci-lua-git')
makedepends=('git' 'cmake' 'gcc' 'make' 'patch' 'pkg-config')
conflicts=('rpcd' 'rpcd-git')
provides=('rpcd')
source=('git://git.openwrt.org/project/rpcd.git' '001-install-headers.patch' '002-rpcd-location.patch')
md5sums=('SKIP' 'SKIP' 'SKIP')
pkgver() {
cd "$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$_gitname"
patch -p1 -i "$srcdir/001-install-headers.patch"
patch -p1 -i "$srcdir/002-rpcd-location.patch"
}
build() {
cd "$_gitname"
cmake CMakeLists.txt \
-DCMAKE_INSTALL_PREFIX=/usr \
-DIWINFO_SUPPORT=NO
make
}
package() {
cd "$_gitname"
make DESTDIR="$pkgdir" install
install -d "$pkgdir"/usr/lib/rpcd/
mv "$pkgdir"/usr/lib/file.so "$pkgdir"/usr/lib/rpcd/
}
|