summaryrefslogtreecommitdiff
path: root/libptytty
diff options
context:
space:
mode:
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"
+}