From 2e62c1c5cbc1f0948cc184476d44404a1e46802f Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Sat, 27 Apr 2013 05:23:55 +0200
Subject: [PATCH] New package: libunwind-1.1.

---
 srcpkgs/libunwind-devel    |  1 +
 srcpkgs/libunwind/template | 29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+)
 create mode 120000 srcpkgs/libunwind-devel
 create mode 100644 srcpkgs/libunwind/template

diff --git a/srcpkgs/libunwind-devel b/srcpkgs/libunwind-devel
new file mode 120000
index 0000000000..afad5166c3
--- /dev/null
+++ b/srcpkgs/libunwind-devel
@@ -0,0 +1 @@
+libunwind
\ No newline at end of file
diff --git a/srcpkgs/libunwind/template b/srcpkgs/libunwind/template
new file mode 100644
index 0000000000..00bc006c50
--- /dev/null
+++ b/srcpkgs/libunwind/template
@@ -0,0 +1,29 @@
+# Template file for 'libunwind'.
+pkgname=libunwind
+version=1.1
+revision=1
+build_style=gnu-configure
+makedepends="liblzma-devel"
+short_desc="Portable and efficient C programming interface (API) to determine the call-chain of a program"
+maintainer="Juan RP <xtraeme@gmail.com>"
+homepage="http://www.nongnu.org/libunwind/"
+license="GPL-2"
+distfiles="http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$version.tar.gz"
+checksum=9dfe0fcae2a866de9d3942c66995e4b460230446887dbdab302d41a8aee8d09a
+
+libunwind-devel_package() {
+	depends="${sourcepkg}>=${version}"
+	short_desc+=" -- development files"
+	pkg_install() {
+		vmove usr/include
+		vmove usr/lib/pkgconfig
+		vmove "usr/lib/*.a"
+		vmove usr/share
+	}
+}
+
+libunwind_package() {
+	pkg_install() {
+		vmove usr
+	}
+}