blob: 98aa6c9fb9f7939fa218ee3eb06e36b08e506c96 (
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
|
# Maintainer: Romain Reignier <rom.reignier at gmail dot com>
pkgname=serial
pkgver=1.2.1
pkgrel=2
pkgdesc="Cross-platform, Serial Port library written in C++"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="http://wjwwood.io/serial/"
license=('MIT')
makedepends=('cmake' 'doxygen')
source=("https://github.com/wjwwood/${pkgname}/archive/${pkgver}.tar.gz"
"cmake.patch"
"serialConfig.cmake"
"serialConfigVersion.cmake"
"LICENSE.txt")
md5sums=('b6d9ebdf821654715656577652b61b64'
'2a78667cd11a34cd24942037161861a5'
'4d13cd57ee5182a83f3dee5181a83162'
'8f756a98aad99d2f89d6969e4e6dd7d5'
'cf59308969fbe23545aa5679666b553b')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 -i ../cmake.patch
rm -rf cmake && mkdir cmake
cp ../serialConfig.cmake cmake/
cp ../serialConfigVersion.cmake cmake/
}
build() {
cd "$srcdir/$pkgname-$pkgver"
rm -rf build && mkdir build
cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
..
make
cd ..
make doc
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
mkdir -p "$pkgdir/usr/share/doc/$pkgname"
cp -a "doc/html" "$pkgdir/usr/share/doc/$pkgname/"
install -Dm644 ../LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|