summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO18
-rw-r--r--LICENSE82
-rw-r--r--PKGBUILD29
3 files changed, 129 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..efebb37698ce
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = pngnq-s9
+ pkgdesc = Modified version of pngnq, neural network colour quantizer for PNG images
+ pkgver = 2.0.1
+ pkgrel = 1
+ url = http://sourceforge.net/projects/pngnqs9/
+ arch = i686
+ arch = x86_64
+ arch = ARM
+ license = custom
+ depends = libpng
+ conflicts = pngnq
+ source = http://sourceforge.net/projects/pngnqs9/files/pngnq-s9-2.0.1.tar.gz/download
+ source = LICENSE
+ sha256sums = 4c88a87e7b3c09f762f5bb27cd9639402b35d48abe010174d2e0cfd2fdd98ae6
+ sha256sums = b1d4705a2a2b3012427fa8f1c3d174eaea478739d05eb3dac0a6a92e5ab3725a
+
+pkgname = pngnq-s9
+
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 000000000000..a78018a739b3
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,82 @@
+--------------------------------------------------------------------------
+ Copyright (c) 2004-2007 Stuart Coyle
+
+ Copyright (c) 1998-2001 Greg Roelofs. All rights reserved.
+
+ This software is provided "as is," without warranty of any kind,
+ express or implied. In no event shall the author or contributors
+ be held liable for any damages arising in any way from the use of
+ this software.
+
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute
+ it freely, subject to the following restrictions:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, disclaimer, and this list of conditions.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, disclaimer, and this list of conditions in the documenta-
+ tion and/or other materials provided with the distribution.
+ 3. All advertising materials mentioning features or use of this
+ software must display the following acknowledgment:
+
+ This product includes software developed by Greg Roelofs
+ and contributors for the book, "PNG: The Definitive Guide,"
+ published by O'Reilly and Associates.
+
+ ---------------------------------------------------------------------------
+
+ NeuQuant Neural-Net Quantization Algorithm
+
+ Copyright (c) 1994 Anthony Dekker
+
+ NEUQUANT Neural-Net quantization algorithm by Anthony Dekker, 1994.
+ See "Kohonen neural networks for optimal colour quantization"
+ in "Network: Computation in Neural Systems" Vol. 5 (1994) pp 351-367.
+ for a discussion of the algorithm.
+ See also http://members.ozemail.com.au/~dekker/NEUQUANT.HTML
+
+ Any party obtaining a copy of these files from the author, directly or
+ indirectly, is granted, free of charge, a full and unrestricted irrevocable,
+ world-wide, paid up, royalty-free, nonexclusive right and license to deal
+ in this software and documentation files (the "Software"), including without
+ limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons who receive
+ copies from any such party to do so, with the only requirement being
+ that this copyright notice remain intact.
+
+
+----------------------------------------------------------------------------
+
+Free Getopt
+Copyright (c)2002-2003 Mark K. Kim
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the original author of this software nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
+THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..b268f8d88f96
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Nicolas F. <aur@fratti.ch>
+pkgname="pngnq-s9"
+pkgver=2.0.1
+pkgrel=1
+arch=('i686' 'x86_64' 'ARM')
+pkgdesc="Modified version of pngnq, neural network colour quantizer for PNG images"
+url="http://sourceforge.net/projects/pngnqs9/"
+conflicts=('pngnq')
+depends=('libpng')
+license=('custom')
+source=("http://sourceforge.net/projects/pngnqs9/files/pngnq-s9-${pkgver}.tar.gz/download"
+ "LICENSE")
+sha256sums=('4c88a87e7b3c09f762f5bb27cd9639402b35d48abe010174d2e0cfd2fdd98ae6'
+ 'b1d4705a2a2b3012427fa8f1c3d174eaea478739d05eb3dac0a6a92e5ab3725a')
+
+build() {
+ cd "$pkgname-$pkgver"
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ cd "$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+} \ No newline at end of file