diff options
author | Mattias Andrée | 2016-12-20 23:48:20 +0100 |
---|---|---|
committer | Mattias Andrée | 2016-12-20 23:48:20 +0100 |
commit | 501cde45c178272fb526026cf222891dee698ae4 (patch) | |
tree | 93775e5df1c0646d6e08bc4d4e3b54d3250a5212 | |
download | aur-501cde45c178272fb526026cf222891dee698ae4.tar.gz |
Initial import, version 1.0
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | libcolour.install | 20 |
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cefbab36438b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +# Generated by mksrcinfo v8 +# Tue Dec 20 22:48:20 UTC 2016 +pkgbase = libcolour + pkgdesc = A C colour space library + pkgver = 1.0 + pkgrel = 1 + url = https://github.com/maandree/libcolour + install = libcolour.install + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = glibc + makedepends = make + makedepends = coreutils + makedepends = gcc + makedepends = texinfo>=4.11 + depends = glibc + source = https://github.com/maandree/libcolour/archive/1.0.tar.gz + sha256sums = ee309bd965eeb3f44d2b67026af4b42b283bb9a991ea9ba617dded48ff7d8b46 + +pkgname = libcolour + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..32c689a4a0d0 --- /dev/null +++ b/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.install b/libcolour.install new file mode 100644 index 000000000000..d5721d46e361 --- /dev/null +++ b/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 +} + |