diff options
author | Mattias Andrée <maandree@kth.se> | 2016-12-20 23:48:39 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-12-20 23:48:39 +0100 |
commit | 2a5c3e84eb0f22f9472c8146c383fbe20660447b (patch) | |
tree | cd81abb4fe529ef7dcc64ff0dfd4dee3aaf0b41a /libcolour | |
parent | Update cg-tools (diff) | |
download | aur-packages-2a5c3e84eb0f22f9472c8146c383fbe20660447b.tar.gz aur-packages-2a5c3e84eb0f22f9472c8146c383fbe20660447b.tar.bz2 aur-packages-2a5c3e84eb0f22f9472c8146c383fbe20660447b.tar.xz |
Add libcolour
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libcolour/PKGBUILD | 28 | ||||
-rw-r--r-- | libcolour/libcolour.install | 20 | ||||
l--------- | libcolour/upload | 1 |
3 files changed, 49 insertions, 0 deletions
diff --git a/libcolour/PKGBUILD b/libcolour/PKGBUILD new file mode 100644 index 0000000..32c689a --- /dev/null +++ b/libcolour/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> + +pkgname=libcolour +pkgver=1.0 +pkgrel=1 +pkgdesc="A C colour space library" +arch=(i686 x86_64) +url="https://github.com/maandree/libcolour" +license=('GPL3') +depends=(glibc) +makedepends=(glibc make coreutils gcc 'texinfo>=4.11') +install=$pkgname.install +source=($url/archive/$pkgver.tar.gz) +sha256sums=(ee309bd965eeb3f44d2b67026af4b42b283bb9a991ea9ba617dded48ff7d8b46) + + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr + make +} + + +package() { + cd "$srcdir/$pkgname-$pkgver" + make install N=: DESTDIR="$pkgdir" +} + diff --git a/libcolour/libcolour.install b/libcolour/libcolour.install new file mode 100644 index 0000000..d5721d4 --- /dev/null +++ b/libcolour/libcolour.install @@ -0,0 +1,20 @@ +_file="libcolour" + +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/libcolour/upload b/libcolour/upload new file mode 120000 index 0000000..1e7a8be --- /dev/null +++ b/libcolour/upload @@ -0,0 +1 @@ +../upload
\ No newline at end of file |