summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a75308419d5af75de7b07463b93c50b53bcf0b3a (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
49
50
51
52
53
# This is the teonet PKGBUILD file. Use the `makepkg -si --noconfirm` command 
# to create and install this package. 

# Maintainer: Kirill Scherba <kirill@scherba.ru>
pkgname=teonet
pkgver=0.4.6
pkgrel=1
epoch=
pkgdesc="Teonet C library"
arch=('i686' 'x86_64')
url=""
license=('GPL')
groups=()
depends=("libev" "confuse" "cunit")
makedepends=("git" "cmake" "intltool" "doxygen")
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("develop.tar.gz::https://github.com/teonet-co/teonet/archive/develop.tar.gz")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

prepare() {
	git clone -b feature/arch_linux_aur_package_create https://github.com/teonet-co/teonet "$pkgname-$pkgver"
	cd "$pkgname-$pkgver"
	git submodule update --init --recursive
	sh/build-arch.sh --none
	./autogen.sh
	./configure --prefix=/usr
}

build() {
	cd "$pkgname-$pkgver"
	make
}

check() {
	cd "$pkgname-$pkgver"
	make test
}

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