summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c4448537f5f929aeccf73f0de371af092bf5651 (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
# Maintainer: Antonin D├ęcimo <antonin dot decimo at gmail dot com>
pkgname=core-git
pkgver=r2075.177f2737
pkgrel=1
pkgdesc="Common Open Research Emulator"
arch=('any')
url="https://github.com/coreemu/core/"
license=('BSD')
depends=('bridge-utils' 'ebtables' 'ethtool' 'fabric' 'iproute2' 'libev'
  'openvswitch' 'procps-ng' 'python3' 'python-future' 'python-grpcio'
  'python-lxml' 'python-mako' 'python-netaddr' 'python-pillow' 'python-yaml'
  'tkimg' 'util-linux' 'xterm')
makedepends=('help2man' 'imagemagick' 'python-sphinx' 'python-grpcio-tools'
  'openvswitch' 'git')
optdepends=('openvswitch: Open vSwitch support')
backup=('etc/core/core.conf')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('core::git+https://github.com/coreemu/core#branch=develop')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"

	# Git, no tags available
	# Sometimes develop and master are not synced.
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	./bootstrap.sh
	./configure --prefix=/usr --with-startup=systemd
	make
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir/" install
}