From cdc4a30eca84bc818ef9354795b0dec157d497df Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 13 Jul 2016 21:17:41 +0200 Subject: Add libclut MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libclut/PKGBUILD | 28 ++++++++++++++++++++++++++++ libclut/libclut.install | 20 ++++++++++++++++++++ libclut/upload | 1 + 3 files changed, 49 insertions(+) create mode 100644 libclut/PKGBUILD create mode 100644 libclut/libclut.install create mode 120000 libclut/upload (limited to 'libclut') diff --git a/libclut/PKGBUILD b/libclut/PKGBUILD new file mode 100644 index 0000000..4758ee2 --- /dev/null +++ b/libclut/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> + +pkgname=libclut +pkgver=0.1 +pkgrel=1 +pkgdesc="C library for manipulating colour lookup tables" +arch=(i686 x86_64) +url="https://github.com/maandree/libclut" +license=('GPL3') +depends=(glibc) +makedepends=(glibc make coreutils gcc 'texinfo>=4.11') +install=$pkgname.install +source=($url/archive/$pkgver.tar.gz) +sha256sums=(c8658b52272f6225ce842bfc880929be1728d0f83b003d5650108167942e8d4c) + + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr + make +} + + +package() { + cd "$srcdir/$pkgname-$pkgver" + make install N=: DESTDIR="$pkgdir" +} + diff --git a/libclut/libclut.install b/libclut/libclut.install new file mode 100644 index 0000000..d81e53f --- /dev/null +++ b/libclut/libclut.install @@ -0,0 +1,20 @@ +_file="libclut" + +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/libclut/upload b/libclut/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/libclut/upload @@ -0,0 +1 @@ +../upload \ No newline at end of file -- cgit v1.2.3-70-g09d2