From 8faaa1f33e9e90aefc0d529b637cc7048c47f820 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 1 Jan 2016 09:52:55 +0100 Subject: add sat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- sat/PKGBUILD | 28 ++++++++++++++++++++++++++++ sat/sat.install | 20 ++++++++++++++++++++ sat/upload | 1 + 3 files changed, 49 insertions(+) create mode 100644 sat/PKGBUILD create mode 100644 sat/sat.install create mode 120000 sat/upload diff --git a/sat/PKGBUILD b/sat/PKGBUILD new file mode 100644 index 0000000..05f2997 --- /dev/null +++ b/sat/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> + +pkgname=sat +pkgver=1.0 +pkgrel=1 +pkgdesc="A simple alternative to at" +arch=(i686 x86_64) +url="https://github.com/maandree/sat" +license=('MIT' 'custom:GFDL1.3') +depends=('linux>=2.6.39' glibc) +makedepends=(glibc make coreutils gcc 'texinfo>=4.11') +install=$pkgname.install +source=($url/archive/$pkgver.tar.gz) +sha256sums=(9efef3a182a1649665641473cd219c9968bec07d19693082d05342a3a52c1669) + + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr + make +} + + +package() { + cd "$srcdir/$pkgname-$pkgver" + make install N=: DESTDIR="$pkgdir" +} + diff --git a/sat/sat.install b/sat/sat.install new file mode 100644 index 0000000..ab11fb2 --- /dev/null +++ b/sat/sat.install @@ -0,0 +1,20 @@ +_file="sat" + +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 +} + diff --git a/sat/upload b/sat/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/sat/upload @@ -0,0 +1 @@ +../upload \ No newline at end of file -- cgit v1.2.3-70-g09d2