|
| 1 | +include $(TOPDIR)/rules.mk |
| 2 | + |
| 3 | +PKG_NAME:=unibilium |
| 4 | +PKG_VERSION:=2.1.2 |
| 5 | +PKG_RELEASE:=1 |
| 6 | + |
| 7 | +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 8 | +PKG_SOURCE_URL:=https://codeload.github.com/neovim/unibilium/tar.gz/v$(PKG_VERSION)? |
| 9 | +PKG_HASH:=370ecb07fbbc20d91d1b350c55f1c806b06bf86797e164081ccc977fc9b3af7a |
| 10 | + |
| 11 | +PKG_MAINTAINER:=Valeriy Kosikhin < [email protected]> |
| 12 | +PKG_LICENSE:=LGPL-3.0-or-later |
| 13 | +PKG_LICENSE_FILES:=LICENSE |
| 14 | + |
| 15 | +PKG_BUILD_PARALLEL:=1 |
| 16 | +PKG_INSTALL:=1 |
| 17 | +PKG_FIXUP:=autoreconf |
| 18 | + |
| 19 | +include $(INCLUDE_DIR)/package.mk |
| 20 | + |
| 21 | +define Package/libunibilium |
| 22 | + SECTION:=libs |
| 23 | + CATEGORY:=Libraries |
| 24 | + TITLE:=Terminfo parsing library |
| 25 | + URL:=https://github.com/neovim/unibilium/ |
| 26 | +endef |
| 27 | + |
| 28 | +define Package/libunibilium/description |
| 29 | + Unibilium is a very basic terminfo library. It can read and write |
| 30 | + ncurses-style terminfo files, and it can interpret terminfo format strings. |
| 31 | +endef |
| 32 | + |
| 33 | +MAKE_FLAGS+= TERMINFO_DIRS='"/etc/terminfo:/lib/terminfo:/usr/share/terminfo:/usr/lib/terminfo:/usr/local/share/terminfo:/usr/local/lib/terminfo"' |
| 34 | + |
| 35 | +define Build/InstallDev |
| 36 | + $(INSTALL_DIR) $(1)/usr/include |
| 37 | + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig |
| 38 | + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/unibilium.h $(1)/usr/include |
| 39 | + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/unibilium.pc $(1)/usr/lib/pkgconfig |
| 40 | + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libunibilium.a $(1)/usr/lib |
| 41 | + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunibilium.so* $(1)/usr/lib |
| 42 | +endef |
| 43 | + |
| 44 | +define Package/libunibilium/install |
| 45 | + $(INSTALL_DIR) $(1)/usr/lib |
| 46 | + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunibilium.so* $(1)/usr/lib |
| 47 | +endef |
| 48 | + |
| 49 | +$(eval $(call BuildPackage,libunibilium)) |
0 commit comments