blob: e5fa28123e7bd79af7dfb0e5802761912c17baa4 (
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
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: mrdotx <klassiker@gmx.de>
pkgname=libptytty
pkgver=2.0
pkgrel=9
pkgdesc='OS independent and secure pty/tty and utmp/wtmp/lastlog handling'
arch=('i686' 'pentium4' 'x86_64')
url='http://software.schmorp.de/pkg/libptytty.html'
license=('GPL')
# install="libptytty.pc.in"
source=(http://dist.schmorp.de/libptytty/$pkgname-$pkgver.tar.gz)
makedepends=('cmake')
_pinned_dependencies=(
'gcc-libs=13.1.1'
'glibc>=2.33'
)
depends=("${_pinned_dependencies[@]}")
sha1sums=('ed0605e23615559139ed8526e1bfaebaf9a95c43')
_dir="$pkgname-$pkgver"
prepare() {
mkdir -p "$_dir/build"
}
build() {
cd "$_dir/build"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
..
cmake --build .
}
package() {
cd "$_dir"
install -Dm755 build/libptytty.so.0 "${pkgdir}/usr/lib/libptytty.so.0"
cp -d build/libptytty.so "${pkgdir}/usr/lib/libptytty.so"
install -Dm644 src/libptytty.h "$pkgdir/usr/include/libptytty.h"
install -Dm644 doc/libptytty.3 "$pkgdir/usr/share/man/man3/libptytty.3"
install -Dm644 build/libptytty.pc "$pkgdir/usr/lib/pkgconfig/libptytty.pc"
}
|