diff --git a/dev-libs/unibilium-2.1.2.PKGBUILD b/dev-libs/unibilium-2.1.2.PKGBUILD new file mode 100644 index 0000000..cf5f41d --- /dev/null +++ b/dev-libs/unibilium-2.1.2.PKGBUILD @@ -0,0 +1,40 @@ +pkgname=unibilium +pkgver=2.1.2 +pkgdesc="A very basic terminfo library" +homepage="https://github.com/neovim/unibilium/" +license=("MIT" "LGPL-3+") +depends=("perl") +_patches=("${pkgname}-2.1.2-no-compress-man.patch") +_path_sums=("6bfbd322f54ffe2daec7cefba167de55b2085923cebb531e7803a8753f57437acfab2bb77fd9c956cd3da3be41e6af2e66acd6281b81bbb23c6045e3863cc90c") +sources=("${pkgname}-${pkgver}.tar.gz" + "${_patches[@]}" +) +urls=("https://github.com/neovim/${pkgname}/archive/v${pkgver}.tar.gz" + "${_patches[@]}" +) +sha512sums=("8bc50b3662fcb1b52055fed028926d8c296169b6b1cfefef9bb37a435321ee6e005c4166c1e68c2959e5f6d4ffe8f44d8ea87d6dcc967176d473ae918ff3018f" + "${_path_sums[@]}" +) + +src_prepare() { + tar -xf ${distdir}/${sources[0]} --strip-components=1 + for _patch in ${_patches[@]}; do + patch -p1 -i ${filedir}/${_patch} + done + autoreconf -fiv +} + +src_build() { + ./configure --prefix=/usr --disable-static + make +} + +src_check() { + make test +} + +src_install() { + make DESTDIR="$pkgdir" install +} + +# vim:ft=sh syn=sh et sw=2: diff --git a/dev-libs/unibilium/unibilium-2.1.2-no-compress-man.patch b/dev-libs/unibilium/unibilium-2.1.2-no-compress-man.patch new file mode 100644 index 0000000..a185c36 --- /dev/null +++ b/dev-libs/unibilium/unibilium-2.1.2-no-compress-man.patch @@ -0,0 +1,22 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -56,7 +56,7 @@ OBJECTS=unibilium.lo uninames.lo uniutil.lo + LIBRARY=libunibilium.la + + PODS=$(wildcard doc/*.pod) +-MANPAGES=$(addprefix man/,$(notdir $(PODS:.pod=.3.gz))) ++MANPAGES=$(addprefix man/,$(notdir $(PODS:.pod=.3))) + + TOOLS=$(wildcard tools/*.c) + +@@ -121,8 +121,8 @@ install-man: build-man + .PHONY: build-man + build-man: $(MANPAGES) + +-man/%.3.gz: doc/%.pod +- $(POD2MAN) $(POD2MAN_OPTS) $< | gzip > $@ ++man/%.3: doc/%.pod ++ $(POD2MAN) $(POD2MAN_OPTS) $< > $@ + + + # Regenerate static test files, based on existing terminfo entries.