diff options
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 47 | ||||
-rw-r--r-- | zthread.patch | 13 |
3 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..50e0487258dd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = zthread + pkgdesc = A platform-independent, multi-threading and synchronization library for C++ + pkgver = 2.3.2 + pkgrel = 1 + url = http://zthread.sourceforge.net/ + arch = i686 + arch = x86_64 + license = MIT + makedepends = automake=1.10 + depends = bash + depends = gcc-libs + options = !emptydirs + options = libtool + source = zthread-2.3.2.tar.gz::http://prdownloads.sourceforge.net/zthread/ZThread-2.3.2.tar.gz + source = zthread.patch + source = https://raw.github.com/freddix/pkgs.old/master/ZThread/ZThread-destdir.patch + md5sums = f2782d19b8ed6f1ff2ab8824dd4ba48e + md5sums = 060cca98aa08f5ebed17d6a1650ddc07 + md5sums = bd43a630a11380918e048f471b8f937a + +pkgname = zthread + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..546a45f9655b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# vim:set ts=2 sw=2 et ft=sh tw=100: expandtab +# Maintainer: Piotr Rogoża <rogoza dot piotr at gmail dot com> +# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com> + +pkgname=zthread +_pkgname=ZThread +pkgver=2.3.2 +pkgrel=1 +pkgdesc='A platform-independent, multi-threading and synchronization library for C++' +arch=('i686' 'x86_64') +url='http://zthread.sourceforge.net/' +license=('MIT') +groups=() +depends=(bash gcc-libs) +makedepends=('automake=1.10') +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install='' +options=(!emptydirs libtool) +source=("$pkgname-$pkgver.tar.gz::http://prdownloads.sourceforge.net/zthread/ZThread-${pkgver}.tar.gz" +zthread.patch +https://raw.github.com/freddix/pkgs.old/master/ZThread/ZThread-destdir.patch +) +noextract=() + +build(){ + cd "$srcdir"/$_pkgname-$pkgver + patch -p1 -i $srcdir/zthread.patch + patch -p1 -i $srcdir/ZThread-destdir.patch + CXXFLAGS+=' -fpermissive' + + ./configure --prefix=/usr + make +} +package(){ + cd "$srcdir"/$_pkgname-$pkgver + + make DESTDIR="$pkgdir/" install + install -Dm644 MIT.TXT "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} +md5sums=('f2782d19b8ed6f1ff2ab8824dd4ba48e' + '060cca98aa08f5ebed17d6a1650ddc07' + 'bd43a630a11380918e048f471b8f937a') diff --git a/zthread.patch b/zthread.patch new file mode 100644 index 000000000000..8c8d36131fa7 --- /dev/null +++ b/zthread.patch @@ -0,0 +1,13 @@ +diff --git a/configure b/configure +index 4ad0545..e17c071 100755 +--- a/configure ++++ b/configure +@@ -8703,7 +8703,7 @@ echo "${ECHO_T}no" >&6 + exit 1 + fi + gentoo_lt_version="1.5.10" +-gentoo_ltmain_version=`grep '^[:space:]*VERSION=' $ltmain | sed -e 's|^[:space:]*VERSION=||'` ++gentoo_ltmain_version=`grep '^[[:space:]]*VERSION=' $ltmain | sed -e 's|^[:space:]*VERSION=||'` + if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then + echo "$as_me:$LINENO: result: no" >&5 + echo "${ECHO_T}no" >&6 |