blob: 59b82b4e685051cab2aaac3603de79c03c353917 (
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
54
|
# Maintainer: motte <ettom22 at hotmail dot com>
# Contributor: CountMurphy <spartan1086@gmail.com>
# Contributor: Shelvacu <aur@shelvacu.com>
_gitname=libserial
pkgname="${_gitname}-git"
pkgver=r532.ddbf39c
pkgrel=1
pkgdesc="A library for accessing serial ports on POSIX systems (git version)"
arch=('x86_64')
url="https://github.com/crayzeewulf/${_gitname}/"
license=('GPL2')
makedepends=(
'git'
'python-sip'
'python-sphinx'
'python-sphinx_rtd_theme'
'gtest'
'boost'
'cmake'
'doxygen'
)
conflicts=("${_gitname}")
provides=("${_gitname}")
source=("$pkgname"::"git+https://github.com/crayzeewulf/${_gitname}.git")
sha512sums=('SKIP')
pkgver() {
cd "${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${pkgname}"
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
sphinx-build -b html "../docs/user_manual/" "docs/html/"
}
package() {
cd "${pkgname}"
cd "build"
DESTDIR="${pkgdir}" make install
install -d "${pkgdir}/usr/share/docs/${gitname}"
cp -R "docs/html" "${pkgdir}/usr/share/docs/${gitname}"
}
|