From a03752678fe82c8ef5c59b1ddcc66bc508e22c80 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 16 Nov 2017 19:07:29 +0100 Subject: Add cmdipc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- cmdipc/PKGBUILD | 27 +++++++++++++++++++++++++++ cmdipc/cmdipc.install | 20 ++++++++++++++++++++ cmdipc/upload | 1 + 3 files changed, 48 insertions(+) create mode 100644 cmdipc/PKGBUILD create mode 100644 cmdipc/cmdipc.install create mode 120000 cmdipc/upload diff --git a/cmdipc/PKGBUILD b/cmdipc/PKGBUILD new file mode 100644 index 0000000..a9595f2 --- /dev/null +++ b/cmdipc/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> + +pkgname=cmdipc +pkgver=1.3 +pkgrel=2 +pkgdesc="System V and POSIX IPC from the command line" +arch=(any) +url="https://github.com/maandree/cmdipc" +license=('GPL3' 'custom:GFDL1.3') +depends=(python3 python-posix_ipc python-sysv-ipc argparser-python) +makedepends=(make sed zip texinfo) +install=cmdipc.install +source=($url/archive/$pkgver.tar.gz) +sha256sums=(1f1eb0e18678140ef7b0f1f30ae11ec8aef8357aec61fd67fb0129fe5bd8d70b) + + +build() { + cd "$srcdir/$pkgname-$pkgver" + make PREFIX=/usr +} + + +package() { + cd "$srcdir/$pkgname-$pkgver" + make PREFIX=/usr install DESTDIR="$pkgdir" +} + diff --git a/cmdipc/cmdipc.install b/cmdipc/cmdipc.install new file mode 100644 index 0000000..1ff9749 --- /dev/null +++ b/cmdipc/cmdipc.install @@ -0,0 +1,20 @@ +_file="cmdipc" + +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/cmdipc/upload b/cmdipc/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/cmdipc/upload @@ -0,0 +1 @@ +../upload \ No newline at end of file -- cgit v1.2.3-70-g09d2