From ea07935e81c7aea53647f45bd13c44400df8b82b Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@voidlinux.eu>
Date: Mon, 14 Sep 2015 07:22:10 +0200
Subject: [PATCH] New package: libchardet-1.0.4

---
 common/shlibs               |  1 +
 srcpkgs/libchardet-devel    |  1 +
 srcpkgs/libchardet/template | 29 +++++++++++++++++++++++++++++
 3 files changed, 31 insertions(+)
 create mode 120000 srcpkgs/libchardet-devel
 create mode 100644 srcpkgs/libchardet/template

diff --git a/common/shlibs b/common/shlibs
index fb4e42c856..13d0a34add 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -2162,3 +2162,4 @@ liblo10k1.so.0 alsa-tools-1.0.29_1
 libgflags.so.2 gflags-2.1.2_1
 libgflags_nothreads.so.2 gflags-2.1.2_1
 libswmhack.so.0.0 spectrwm-2.7.2_1
+libchardet.so.1 libchardet-1.0.4_1
diff --git a/srcpkgs/libchardet-devel b/srcpkgs/libchardet-devel
new file mode 120000
index 0000000000..0fcfa3f2b2
--- /dev/null
+++ b/srcpkgs/libchardet-devel
@@ -0,0 +1 @@
+libchardet
\ No newline at end of file
diff --git a/srcpkgs/libchardet/template b/srcpkgs/libchardet/template
new file mode 100644
index 0000000000..6749355c40
--- /dev/null
+++ b/srcpkgs/libchardet/template
@@ -0,0 +1,29 @@
+# Template build file for 'libchardet'.
+pkgname=libchardet
+version=1.0.4
+revision=1
+build_style=gnu-configure
+hostmakedepends="perl"
+short_desc="Mozilla's Universal Charset Detector C/C++ API"
+maintainer="Juan RP <xtraeme@voidlinux.eu>"
+homepage="http://ftp.oops.org/pub/oops/libchardet/"
+license="MPL-1.1"
+distfiles="http://ftp.oops.org/pub/oops/libchardet/libchardet-${version}.tar.bz2"
+checksum=f43f5a63901f19780b5cd61ad130d432a9414e2e4da2abc0e1b80845895a7c33
+
+post_install() {
+	rm -rf ${DESTDIR}/usr/share/doc
+}
+
+libchardet-devel_package() {
+	depends="${sourcepkg}-${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/bin
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove usr/lib/*.a
+		vmove usr/lib/*.so
+		vmove usr/share/man
+	}
+}