From 008ca15dfe2e9763b3e241d7fd85191d1c7c9487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 18 Dec 2017 11:36:56 +0100 Subject: [PATCH] New package: libtecla-1.6.3 (really) --- srcpkgs/libtecla-devel | 1 + srcpkgs/libtecla/patches/fix-destdir.patch | 17 +++++++++++++ srcpkgs/libtecla/patches/musl-build.patch | 9 +++++++ srcpkgs/libtecla/template | 28 ++++++++++++++++++++++ 4 files changed, 55 insertions(+) create mode 120000 srcpkgs/libtecla-devel create mode 100644 srcpkgs/libtecla/patches/fix-destdir.patch create mode 100644 srcpkgs/libtecla/patches/musl-build.patch create mode 100644 srcpkgs/libtecla/template diff --git a/srcpkgs/libtecla-devel b/srcpkgs/libtecla-devel new file mode 120000 index 0000000000..1bc4ae215e --- /dev/null +++ b/srcpkgs/libtecla-devel @@ -0,0 +1 @@ +libtecla \ No newline at end of file diff --git a/srcpkgs/libtecla/patches/fix-destdir.patch b/srcpkgs/libtecla/patches/fix-destdir.patch new file mode 100644 index 0000000000..5334bba717 --- /dev/null +++ b/srcpkgs/libtecla/patches/fix-destdir.patch @@ -0,0 +1,17 @@ +--- Makefile.in.orig ++++ Makefile.in +@@ -15,10 +15,10 @@ + + prefix=@prefix@ + exec_prefix=@exec_prefix@ +-LIBDIR=@libdir@ +-INCDIR=@includedir@ +-MANDIR=@mandir@ +-BINDIR=@bindir@ ++LIBDIR=$(DESTDIR)@libdir@ ++INCDIR=$(DESTDIR)@includedir@ ++MANDIR=$(DESTDIR)@mandir@ ++BINDIR=$(DESTDIR)@bindir@ + + # Which C compiler do you want to use? + diff --git a/srcpkgs/libtecla/patches/musl-build.patch b/srcpkgs/libtecla/patches/musl-build.patch new file mode 100644 index 0000000000..37f241fc65 --- /dev/null +++ b/srcpkgs/libtecla/patches/musl-build.patch @@ -0,0 +1,9 @@ +--- Makefile.rules.orig ++++ Makefile.rules +@@ -165,5 +165,5 @@ + # Include file dependencies. + #----------------------------------------------------------------------- + +-$(OBJDIR)/keytab.h: $(srcdir)/keytab.h $(srcdir)/libtecla.h ++$(OBJDIR)/keytab.h: $(srcdir)/keytab.h $(srcdir)/libtecla.h $(OBJDIR) + cp $(srcdir)/keytab.h $@ diff --git a/srcpkgs/libtecla/template b/srcpkgs/libtecla/template new file mode 100644 index 0000000000..7055a50a63 --- /dev/null +++ b/srcpkgs/libtecla/template @@ -0,0 +1,28 @@ +# Template file for 'libtecla' +pkgname=libtecla +version=1.6.3 +revision=1 +wrksrc=${pkgname} +build_style=gnu-configure +makedepends="ncurses-devel" +short_desc="Provides interactive command line editing facilities" +maintainer="bra1nwave " +license="MIT/X11" +homepage="http://www.astro.caltech.edu/~mcs/tecla" +distfiles="${homepage}/${pkgname}-${version}.tar.gz" +checksum=f2757cc55040859fcf8f59a0b7b26e0184a22bece44ed9568a4534a478c1ee1a + +post_install() { + vlicense LICENSE.TERMS LICENSE +} + +libtecla-devel_package() { + short_desc+=" - development files" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/include + vmove usr/lib/*.a + vmove usr/lib/*.so + vmove usr/share/man/man3 + } +}