From 5d0419d3009615d8dc6a3873d696cc0c7b527211 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 17 Dec 2015 14:35:21 +0100 Subject: add vtchs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- vtchs/PKGBUILD | 28 ++++++++++++++++++++++++++++ vtchs/upload | 1 + vtchs/vtchs.install | 20 ++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 vtchs/PKGBUILD create mode 120000 vtchs/upload create mode 100644 vtchs/vtchs.install (limited to 'vtchs') diff --git a/vtchs/PKGBUILD b/vtchs/PKGBUILD new file mode 100644 index 0000000..4a754d0 --- /dev/null +++ b/vtchs/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> + +pkgname=vtchs +pkgver=1.0 +pkgrel=1 +pkgdesc="Listen for VT switches" +arch=(i686 x86_64) +url="https://github.com/maandree/vtchs" +license=('GPL3' 'custom:GFDL1.3') +depends=(linux glibc) +makedepends=(linux-api-headers glibc make coreutils gcc 'texinfo>=4.11') +install=$pkgname.install +source=($url/archive/$pkgver.tar.gz) +sha256sums=(f526cbe834e6144f2591c2e9cfedc53dd9a52d6a738c5c190739c9b8aad47006) + + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr + make OPTIMISE=-Os +} + + +package() { + cd "$srcdir/$pkgname-$pkgver" + make install DESTDIR="$pkgdir" +} + diff --git a/vtchs/upload b/vtchs/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/vtchs/upload @@ -0,0 +1 @@ +../upload \ No newline at end of file diff --git a/vtchs/vtchs.install b/vtchs/vtchs.install new file mode 100644 index 0000000..2a9f948 --- /dev/null +++ b/vtchs/vtchs.install @@ -0,0 +1,20 @@ +_file="vtchs" + +infodir="usr/share/info" +file="${_file}.info" + + +post_install() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + -- cgit v1.2.3-70-g09d2