diff options
-rw-r--r-- | vtchs/PKGBUILD | 28 | ||||
l--------- | vtchs/upload | 1 | ||||
-rw-r--r-- | vtchs/vtchs.install | 20 |
3 files changed, 49 insertions, 0 deletions
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 +} + |