[arch-commits] Commit in uthash/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 13:57:54 UTC 2020


    Date: Tuesday, July 7, 2020 @ 13:57:54
  Author: felixonmars
Revision: 658660

archrelease: copy trunk to community-staging-any

Added:
  uthash/repos/community-staging-any/
  uthash/repos/community-staging-any/PKGBUILD
    (from rev 658659, uthash/trunk/PKGBUILD)

----------+
 PKGBUILD |   27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

Copied: uthash/repos/community-staging-any/PKGBUILD (from rev 658659, uthash/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-07-07 13:57:54 UTC (rev 658660)
@@ -0,0 +1,27 @@
+# Maintainer: Santiago Torres-Arias <santiago at archlinux.org>
+# Contributor: Timothy Redaelli <timothy.redaelli at gmail.com>
+# Contributor: Michael Frey <mail at mfrey.net>
+pkgname=uthash
+pkgver=2.1.0
+pkgrel=2
+pkgdesc="C preprocessor implementations of a hash table and a linked list"
+arch=('any')
+url="https://troydhanson.github.io/uthash/"
+license=('BSD')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/troydhanson/$pkgname/archive/v$pkgver.tar.gz")
+sha256sums=('152ccd8e64d0f495377232e3964d06c7ec8bb8c3fbd3217f8a5702614f9a669e')
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}/src"
+ 
+  # create directory for header files 
+  install -dm755 "${pkgdir}"/usr/include/
+
+  # install header files in /usr/include
+  for h in *.h; do
+      install -m 644 ${h} "${pkgdir}"/usr/include/
+  done
+
+  # install license file
+  install -D -m644 ../LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list