summaryrefslogtreecommitdiff
path: root/community/libstrl/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/libstrl/PKGBUILD')
-rw-r--r--community/libstrl/PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/libstrl/PKGBUILD b/community/libstrl/PKGBUILD
new file mode 100644
index 000000000..0a25f255a
--- /dev/null
+++ b/community/libstrl/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 102397 2013-12-10 10:41:46Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Nathan Phillip Brink <binki@gentoo.org>
+
+pkgname=libstrl
+pkgver=0.5.1
+pkgrel=1
+pkgdesc="Implementations of certain GNU-only or BSD-only string-related libc functions, such as strlcpy() and getdelim(), for compat purposes"
+url="http://ohnopub.net/~ohnobinki/libstrl"
+license=('LGPL3')
+arch=(i686 x86_64)
+depends=()
+makedepends=(doxygen libtool pkg-config)
+options=(!libtool)
+source=(ftp://mirror.ohnopub.net/mirror/${pkgname}-${pkgver}.tar.bz2{,.asc})
+md5sums=('d22fcd8107526d802428be6f0e8f0f60'
+ 'SKIP')
+
+build() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+ ./configure --prefix=/usr --with-doxygen
+ make
+}
+
+check() {
+ make -C "${srcdir}"/${pkgname}-${pkgver} check
+}
+
+package() {
+ cd "${srcdir}"/${pkgname}-${pkgver}
+
+ # doxygen workaround
+ sed -i 's|man0/strl.h.0|man30/strl.h.30|g' Makefile
+ install -Dm0644 man/man30/strl.h.30 $pkgdir/usr/share/man/man0/strl.h.0
+
+ make DESTDIR="${pkgdir}" install
+}