summaryrefslogtreecommitdiff
path: root/libptytty
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-11-25 22:21:19 +0100
committerErich Eckner <git@eckner.net>2021-11-25 22:21:19 +0100
commit783755b554d2594eb4ca5741411d917751c61cc7 (patch)
treeac4ba849941d296097575294d3e6ef5525242a01 /libptytty
parentd2e5f307823d6da0a708a399a536dc14f5a0552d (diff)
downloadarchlinuxewe-783755b554d2594eb4ca5741411d917751c61cc7.tar.xz
libptytty neu
Diffstat (limited to 'libptytty')
-rw-r--r--libptytty/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/libptytty/PKGBUILD b/libptytty/PKGBUILD
new file mode 100644
index 000000000..898b7fadf
--- /dev/null
+++ b/libptytty/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: mrdotx <klassiker@gmx.de>
+pkgname=libptytty
+pkgver=2.0
+pkgrel=1
+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')
+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"
+}