Verified Commit 21c4b84e authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

user/*: Modernise / fix syntax / metadata / deps

parent 5efd7da9
......@@ -8,22 +8,19 @@ pkgrel=0
pkgdesc="Python library for reading and writing of configuration files (ini)"
url="https://github.com/DiffSK/configobj"
arch="noarch"
options="!check" # no tests
options="!check" # No test suite.
license="BSD-3-Clause"
depends="python3 py3-six"
makedepends="python3-dev"
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://github.com/DiffSK/configobj/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
......
......@@ -14,17 +14,14 @@ source="https://files.pythonhosted.org/packages/8f/26/02c4016aa95f45479eea37c90c
builddir="$srcdir/incremental-$pkgver"
build() {
cd "$builddir"
python3 setup.py build
}
check() {
cd "$builddir"
python3 setup.py test
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
......
......@@ -24,4 +24,5 @@ package() {
mkdir -p "$pkgdir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="25a360b3893e1c1c524440b02e0af66c6dfefd756cebdad1c27ae8a82461200448a9c8fc835747e160cbcbb63261a4f79d7765eaae5e0b19feea5bf84d5e8896 josepy-1.2.0.tar.gz"
......@@ -9,7 +9,7 @@ pkgrel=0
pkgdesc="A Python implementation of Markdown"
url="https://python-markdown.github.io/"
arch="noarch"
options="!check" # needs flake8
options="!check" # needs flake8
license="BSD-3-Clause"
depends="python3"
makedepends="python3-dev"
......
......@@ -16,20 +16,16 @@ source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python3 setup.py build
}
check() {
cd "$builddir"
# No tests available
python3 setup.py test
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="41d2b296844e9dab9429f34eec37fe106a4e6c2039824c37067ed048dcc328b13e666b22d3482ccfc6153af4e44b5d895f3011ec45df55ffa07a98459e3caefd py3-pytest-expect-1.1.0.tar.gz"
......@@ -8,7 +8,7 @@ pkgrel=0
pkgdesc="Useful classes and functions to be used with python-requests"
url="https://github.com/requests/toolbelt"
arch="noarch"
options="!check" # needs betamax
options="!check" # Needs betamax
license="Apache-2.0"
depends="python3"
makedepends="python3-dev"
......@@ -17,13 +17,11 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/requests/$_pkgname/archive/$
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python3 setup.py build
}
package() {
mkdir -p "$pkgdir"
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
......
......@@ -20,13 +20,11 @@ source="https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python3 setup.py build
}
package() {
mkdir -p "$pkgdir"
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
......
......@@ -11,8 +11,8 @@ url="https://pypi.python.org/pypi/u-msgpack-python"
arch="noarch"
license="MIT"
depends="python3"
makedepends="python3-dev"
checkdepends="py3-pytest"
makedepends="python3-dev"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
......@@ -26,7 +26,6 @@ check() {
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="cefba7ed86d2b7c37b0d92e3a4fb4ec62c89dffee0be078c783010638413e6ce1af7ab959b43dfedb6fd8cf2943185c18fc2201a4a9764c423e8242bcedf21a9 py3-u-msgpack-python-2.5.2.tar.gz"
......@@ -12,25 +12,21 @@ arch="noarch"
# Packaging error, see https://github.com/gsnedders/python-webencodings/blob/master/LICENSE
license="BSD-3-Clause"
depends="python3"
makedepends="python3-dev"
checkdepends="py3-pytest"
makedepends="python3-dev"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python3 setup.py build
}
check() {
cd "$builddir"
PYTHONPATH="build/lib:$PYTHONPATH" pytest webencodings/tests.py
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="b727b01bac6ec79bca517960d27b4c0668b295f25559471b9641c2c33dab55db6dac9c990952177964c6418382c22831b14d57df5e632d51d7abf97b61f24326 py3-webencodings-0.5.1.tar.gz"
......@@ -8,7 +8,7 @@ pkgrel=1
pkgdesc="Zope Component Architecture"
url="https://pypi.python.org/pypi/zope.component"
arch="noarch"
options="!check" # needs nose
options="!check" # needs nose
license="ZPL-2.1"
depends="python3 py3-zope-deferredimport py3-zope-deprecation py3-zope-event py3-zope-hookable py3-zope-interface py3-zope-proxy"
makedepends="python3-dev"
......@@ -17,12 +17,10 @@ source="$_pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/$_pkgname/ar
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
......
......@@ -7,7 +7,7 @@ pkgrel=0
pkgdesc="Zope module that allows for lazy module importing"
url="https://github.com/zopefoundation/zope.deferredimport"
arch="noarch"
options="!check" # needs zope.testrunner
options="!check" # needs zope.testrunner
license="ZPL-2.1"
depends="python3"
makedepends="python3-dev py3-zope-proxy"
......
......@@ -7,7 +7,7 @@ pkgrel=0
pkgdesc="A function to mark deprecated parts of an API"
url="https://github.com/zopefoundation/zope.deprecation"
arch="noarch"
options="!check" # needs zope.testrunner
options="!check" # needs zope.testrunner
license="ZPL-2.1"
depends="python3"
makedepends="python3-dev"
......@@ -16,12 +16,10 @@ source="$_pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/$_pkgname/ar
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
......
......@@ -8,26 +8,22 @@ pkgrel=0
pkgdesc="Event publishing / dispatch, used by Zope Component Architecture"
url="https://github.com/zopefoundation/zope.event"
arch="noarch"
options="!check" # needs nose
options="!check" # needs nose
license="ZPL-2.1"
depends="python3"
makedepends="python3-dev"
source="$_pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$builddir"
python3 setup.py build
}
check() {
cd "$builddir"
python3 setup.py test
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
......
......@@ -18,17 +18,14 @@ source="https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python3 setup.py build
}
check() {
cd "$builddir"
python3 setup.py test
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
......
......@@ -7,7 +7,7 @@ pkgrel=0
pkgdesc="Zope module for class and function proxies"
url="https://github.com/zopefoundation/zope.proxy"
arch="all"
options="!check" # needs zope.testrunner, zope.security
options="!check" # needs zope.testrunner, zope.security
license="ZPL-2.1"
depends="python3 py3-zope-interface"
makedepends="python3-dev"
......
......@@ -9,13 +9,12 @@ arch="all"
options="!check"
license="ISC"
_skalibs_version=2.9
depends=
depends=""
makedepends="skalibs-dev>=$_skalibs_version skalibs-libs-dev>=$_skalibs_version"
subpackages="$pkgname-libs $pkgname-dev $pkgname-libs-dev:libsdev $pkgname-doc"
source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz"
build() {
cd "$builddir"
./configure \
--enable-shared \
--enable-static \
......@@ -28,42 +27,36 @@ build() {
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
libs() {
pkgdesc="$pkgdesc (shared libraries)"
depends="skalibs-libs>=$_skalibs_version"
mkdir -p "$subpkgdir/usr/lib"
mv "$pkgdir"/usr/lib/*.so.* "$subpkgdir/usr/lib/"
pkgdesc="$pkgdesc (shared libraries)"
depends="skalibs-libs>=$_skalibs_version"
mkdir -p "$subpkgdir/usr/lib"
mv "$pkgdir"/usr/lib/*.so.* "$subpkgdir/usr/lib/"
}
dev() {
pkgdesc="$pkgdesc (development files)"
depends="skalibs-dev>=$_skalibs_version"
mkdir -p "$subpkgdir/usr/include" "$subpkgdir/usr/lib"
mv "$pkgdir/usr/include" "$subpkgdir/usr/"
pkgdesc="$pkgdesc (development files)"
depends="skalibs-dev>=$_skalibs_version"
install_if="dev $pkgname=$pkgver-r$pkgrel"
mkdir -p "$subpkgdir/usr/include" "$subpkgdir/usr/lib"
mv "$pkgdir/usr/include" "$subpkgdir/usr/"
mv "$pkgdir"/usr/lib/*.a "$subpkgdir/usr/lib/"
}
libsdev() {
pkgdesc="$pkgdesc (development files for dynamic linking)"
depends="$pkgname-dev"
mkdir -p "$subpkgdir/usr/lib"
mv "$pkgdir"/usr/lib/*.so "$subpkgdir/usr/lib/"
pkgdesc="$pkgdesc (development files for dynamic linking)"
depends="$pkgname-dev"
mkdir -p "$subpkgdir/usr/lib"
mv "$pkgdir"/usr/lib/*.so "$subpkgdir/usr/lib/"
}
doc() {
pkgdesc="$pkgdesc (documentation)"
depends=
install_if="docs $pkgname=$pkgver-r$pkgrel"
mkdir -p "$subpkgdir/usr/share/doc"
cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
default_doc
mkdir -p "$subpkgdir/usr/share/doc"
cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
}
sha512sums="e69ee16cb16139d344255adc4bb92bd73003464925bbd2df893e3b922add155308b547274a66e3f20a5d3c0310c8fadc877b656753299ff9a269b4e25c26f7a9 s6-dns-2.3.1.1.tar.gz"
......@@ -15,56 +15,51 @@ subpackages="$pkgname-libs $pkgname-dev $pkgname-libs-dev:libsdev $pkgname-doc"
source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz"
build() {
cd "$builddir"
./configure \
--enable-shared \
--enable-static \
--disable-allstatic \
--prefix=/usr \
./configure \
--enable-shared \
--enable-static \
--disable-allstatic \
--prefix=/usr \
--libdir=/usr/lib \
--libexecdir="/usr/lib/$pkgname" \
--with-dynlib=/lib \
--enable-ssl=bearssl
make
--libexecdir="/usr/lib/$pkgname" \
--with-dynlib=/lib \
--enable-ssl=bearssl
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" install
}
libs() {
pkgdesc="$pkgdesc (shared libraries)"
depends="skalibs-libs>=$_skalibs_version"
mkdir -p "$subpkgdir/usr/lib"
mv "$pkgdir"/usr/lib/*.so.* "$subpkgdir/usr/lib/"
pkgdesc="$pkgdesc (shared libraries)"
depends="skalibs-libs>=$_skalibs_version"
mkdir -p "$subpkgdir/usr/lib"
mv "$pkgdir"/usr/lib/*.so.* "$subpkgdir/usr/lib/"
}
dev() {
pkgdesc="$pkgdesc (development files)"
depends="skalibs-dev>=$_skalibs_version"
mkdir -p "$subpkgdir/usr/include" "$subpkgdir/usr/lib"
mv "$pkgdir/usr/include" "$subpkgdir/usr/"
mv "$pkgdir"/usr/lib/*.a "$subpkgdir/usr/lib/"
pkgdesc="$pkgdesc (development files)"
depends="skalibs-dev>=$_skalibs_version"
install_if="dev $pkgname=$pkgver-r$pkgrel"
mkdir -p "$subpkgdir/usr/include" "$subpkgdir/usr/lib"
mv "$pkgdir/usr/include" "$subpkgdir/usr/"
mv "$pkgdir"/usr/lib/*.a "$subpkgdir/usr/lib/"
}
libsdev() {
pkgdesc="$pkgdesc (development files for dynamic linking)"
depends="$pkgname-dev"
mkdir -p "$subpkgdir/usr/lib"
mv "$pkgdir"/usr/lib/*.so "$subpkgdir/usr/lib/"
pkgdesc="$pkgdesc (development files for dynamic linking)"
depends="$pkgname-dev"
mkdir -p "$subpkgdir/usr/lib"
mv "$pkgdir"/usr/lib/*.so "$subpkgdir/usr/lib/"
}
doc() {
pkgdesc="$pkgdesc (documentation)"
depends=
install_if="docs $pkgname=$pkgver-r$pkgrel"
mkdir -p "$subpkgdir/usr/share/doc"
cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
pkgdesc="$pkgdesc (documentation)"
depends=""
install_if="docs $pkgname=$pkgver-r$pkgrel"
mkdir -p "$subpkgdir/usr/share/doc"
cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
}
sha512sums="3bd7cdbf6f105bb83c5116e736f4288d378571467e7aa93f862eba80ce28255bda77140a2a1cf80af80480789dfb38682049f6769952fb8964b860bdf465551b s6-networking-2.3.1.1.tar.gz"
......@@ -8,7 +8,7 @@ url="http://www.jedsoft.org/slang/"
arch="all"
license="GPL-2.0+ AND NTP"
depends=""
makedepends="pcre-dev"
makedepends="pcre-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.jedsoft.org/releases/slang/slang-$pkgver.tar.bz2"
......@@ -19,7 +19,10 @@ build() {
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
--localstatedir=/var \
--with-zlib=/ \
--with-zinc=/usr/include \
--with-pcre=/usr
make -j1
}
......
......@@ -7,17 +7,15 @@ url="http://tcl.sourceforge.net/"
arch="all"
options="!check" # Requires a running X11 server.
license="TCL"
depends=
depends=""
depends_dev="tcl-dev libx11-dev libxft-dev fontconfig-dev"
makedepends="$depends_dev libpng-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="https://downloads.sourceforge.net/sourceforge/tcl/$pkgname$pkgver-src.tar.gz
"
source="https://downloads.sourceforge.net/sourceforge/tcl/$pkgname$pkgver-src.tar.gz"
_major=8.6
builddir="$srcdir"/tk8.6.9/unix
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -27,7 +25,6 @@ build() {
}
package() {
cd "$builddir"
export LD_LIBRARY_PATH="$builddir"
make -j1 INSTALL_ROOT="${pkgdir}" install install-private-headers
......
......@@ -10,18 +10,16 @@ arch="all"
options="!check" # TODO: this package has tests that require X
license="GPL-2.0+"
depends=""
makedepends="libx11-dev libxmu-dev"
makedepends="autoconf automake libx11-dev libxmu-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/astrand/${pkgname}/archive/${pkgver}.tar.gz"
prepare() {
cd "$builddir"
default_prepare
autoreconf -vif
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -33,7 +31,6 @@ build() {
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment