Verified Commit 43b362a3 authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

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

parent 70a61c71
......@@ -15,8 +15,7 @@ source="http://scholarsfonts.net/cardo104.zip"
builddir="$srcdir"
package() {
cd "$builddir"
install -m644 -Dt "$pkgdir"/usr/share/fonts/X11/TTF/ *.ttf
install -m644 -Dt "$pkgdir"/usr/share/fonts/X11/TTF/ "$srcdir"/*.ttf
}
sha512sums="559d91528dfebba1c0668ab0116e7cc8d481c88727cf01848978d920d625ee32c893d6abff3170e5365e136fa6f603c4f34390e17383409bc3db01611c42eefb cardo104.zip"
......@@ -14,12 +14,10 @@ subpackages="$pkgname-doc"
source="https://binaries.openttd.org/extra/catcodec/1.0.5/catcodec-$pkgver-source.tar.xz"
build() {
cd "$builddir"
make
}
package() {
cd "$builddir"
make prefix=/usr DESTDIR="$pkgdir" install
}
......
......@@ -13,7 +13,6 @@ subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc"
source="https://linuxcontainers.org/downloads/cgmanager/cgmanager-$pkgver.tar.gz"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -26,12 +25,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -15,8 +15,7 @@ source="https://01.org/sites/default/files/downloads/clear-sans/clearsans-$pkgve
builddir="$srcdir"
package() {
cd "$builddir"
install -m644 -Dt "$pkgdir"/usr/share/fonts/X11/TTF/ TTF/*.ttf
install -m644 -Dt "$pkgdir"/usr/share/fonts/X11/TTF/ "$builddir"/TTF/*.ttf
}
sha512sums="83faebae8b1041ab16bb3c6586574374f70ad1da406ad5d20f07f14b65e00e8645c5393471cea0194b14f2c2d926d6de814f745299062a4dccef2581e6de332d clearsans-1.00.zip"
......@@ -9,22 +9,20 @@ arch="noarch"
license="GPL-2.0+"
depends="perl perl-regexp-common perl-algorithm-diff"
checkdepends="perl-parallel-forkmanager"
makedepends=""
subpackages="$pkgname-doc"
source="https://github.com/AlDanial/cloc/releases/download/$pkgver/cloc-$pkgver.tar.gz"
build() {
cd Unix
make DESTDIR="$pkgdir" doc
make DESTDIR="$pkgdir" -C Unix doc
}
check() {
cd Unix
make DESTDIR="$pkgdir" test-perl
make DESTDIR="$pkgdir" -C Unix test-perl
}
package() {
cd Unix
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" -C Unix install
}
sha512sums="cfcc1854d7f3257bcd66f13b1053a856ae31acc35f94537e20cbb341ab256390bded1f00ff6b1ce2bc60a1a69379b6915d398297e2f878bc4eea190c59b22669 cloc-1.84.tar.gz"
......@@ -21,14 +21,12 @@ builddir="$srcdir/$pkgname-core-$pkgver"
prepare() {
default_prepare
cd "$builddir"
# Do not use bundled zlib or boost
sed -ie '/ADD_SUBDIRECTORY (src\/ext)/d' CMakeLists.txt
rm -rf src/ext
}
build() {
cd "$builddir"
cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_CONTRIBS_LIB=BOOL:ON \
......@@ -39,8 +37,6 @@ build() {
}
check() {
cd "$builddir"
# clucene is not smart enough to delete files between successive checks,
# so let's remove them for it. Otherwise, if check is run a second time
# without clearing the files beforehand, a lot of tests will fail.
......@@ -56,7 +52,6 @@ check() {
}
package() {
cd "$builddir"
make install/fast DESTDIR="$pkgdir"
rm -r "$pkgdir"/usr/lib/CLuceneConfig.cmake
}
......
......@@ -6,15 +6,15 @@ pkgrel=0
pkgdesc="OpenGL-based interactive canvas library"
url="https://gnome.org"
arch="all"
options="!check" # testsuite skipped all tests
options="!check" # Test suite skipped all tests.
license="LGPL-2.0+ AND MIT AND LGPL-2.1+ AND GPL-2.0+"
depends=""
makedepends="glib-dev mesa-dev cogl-dev cairo-dev pango-dev json-glib-dev
atk-dev vala gobject-introspection-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/clutter/1.26/clutter-$pkgver.tar.xz"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -26,12 +26,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -14,8 +14,7 @@ subpackages=""
source="https://downloads.sourceforge.net/cm-unicode/cm-unicode-$pkgver-ttf.tar.xz"
package() {
cd "$builddir"
install -m644 -Dt "$pkgdir"/usr/share/fonts/X11/TTF/ *.ttf
install -m644 -Dt "$pkgdir"/usr/share/fonts/X11/TTF/ "$builddir"/*.ttf
}
sha512sums="6340b7c6b220c8c887a4b77e77a01a43bedf13d08dd1d62570de70866d0bff908adf3fcb7907149ab2f5ab060650b39eaad3c01c1e8d028bbeb879b058190e70 cm-unicode-0.7.0-ttf.tar.xz"
......@@ -6,7 +6,7 @@ pkgrel=1
pkgdesc="An ncurses based music player with plugin support for many formats"
url="https://cmus.github.io/"
arch="all"
options="!check" # no test suite
options="!check" # No test suite.
license="GPL-2.0+"
depends=""
makedepends="alsa-lib-dev faad2-dev ffmpeg-dev flac-dev libao-dev libcddb-dev
......@@ -14,10 +14,10 @@ makedepends="alsa-lib-dev faad2-dev ffmpeg-dev flac-dev libao-dev libcddb-dev
opusfile-dev pulseaudio-dev wavpack-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz
ppc-libatomic.patch"
ppc-libatomic.patch
"
build() {
cd "$builddir"
./configure prefix=/usr \
CONFIG_AAC=y \
CONFIG_ALSA=y \
......@@ -57,7 +57,6 @@ build() {
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" PREFIX=/usr install
}
......
......@@ -6,15 +6,15 @@ pkgrel=0
pkgdesc="GObject-based GL/GLES abstraction library"
url="https://gnome.org"
arch="all"
options="!check" # broken testsuite, no logs/messages to determine why
options="!check" # broken testsuite, no logs/messages to determine why
license="MIT AND SGI-B-2.0 AND BSD-3-Clause AND Public-Domain AND LGPL-2.0+ AND Apache-2.0"
depends=""
makedepends="glib-dev libxcomposite-dev libxrandr-dev mesa-dev cairo-dev
pango-dev vala gobject-introspection-dev gdk-pixbuf-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/cogl/1.22/cogl-$pkgver.tar.xz"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -28,12 +28,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -15,8 +15,7 @@ source="$pkgname-$pkgver.zip::https://github.com/crozynski/comicneue/archive/v$p
builddir="$srcdir/comicneue-$pkgver"
package() {
cd "$builddir"
install -m644 -Dt "$pkgdir"/usr/share/fonts/X11/OTF/ OTF/*.otf
install -m644 -Dt "$pkgdir"/usr/share/fonts/X11/OTF/ "$builddir"/OTF/*.otf
}
sha512sums="12c93efc00e1caecd6be9080de37ecf2049384185c4043dc250945b7cb47fbbe3fcc973ebdf7d58f3351ba11f87341c24af7e1039b873d463b0d84da9c72f0b8 comic-neue-2.4.zip"
......@@ -9,13 +9,11 @@ arch="all"
options="!check" # No test suite.
license="MIT"
depends=""
depends_dev=""
makedepends="$depends_dev"
makedepends=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://ftp.xemacs.org/pub/xemacs/aux/compface-$pkgver.tar.gz"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -27,7 +25,6 @@ build() {
}
package() {
cd "$builddir"
make prefix="$pkgdir"/usr MANDIR="$pkgdir"/usr/share/man install
}
......
......@@ -15,11 +15,9 @@ subpackages=""
source="https://github.com/lxqt/compton-conf/releases/download/$pkgver/compton-conf-$pkgver.tar.xz"
build() {
cd "$builddir"
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
mkdir -p build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
......@@ -27,13 +25,12 @@ build() {
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS} ..
make
${CMAKE_CROSSOPTS} -Bbuild
make -C build
}
package() {
cd "$builddir"/build
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" -C build install
}
sha512sums="76cacb0960112ab3d0b7a05fba3ac2418c2bd37f4273fc20383b49ce035fd045a2a8e8a1ae5a8a5dc116f46ab6ccd7a5764dd2c3ec64822d930c7dd268533db4 compton-conf-0.14.1.tar.xz"
......@@ -4,17 +4,15 @@ pkgname=confuse
pkgver=3.2.2
pkgrel=0
pkgdesc="Small configuration file parser library for C"
url="https://github.com/martinh/libconfuse"
url=" "
arch="all"
options="!checkroot"
license="ISC"
depends=""
makedepends=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz"
source="https://github.com/martinh/libconfuse/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -29,12 +27,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -14,8 +14,7 @@ subpackages=""
source="https://dev.gentoo.org/~jstein/dist/courier-prime-$pkgver.tar.xz"
package() {
cd "$builddir"
install -m644 -Dt "$pkgdir"/usr/share/fonts/X11/TTF/ *.ttf
install -m644 -Dt "$pkgdir"/usr/share/fonts/X11/TTF/ "$builddir"/*.ttf
}
sha512sums="fef9d7f09dafbdb9d8626cb06cac617319d5ec43aef29fe7f6ee25156b380f9ec9684715d6012f05cb40d9511d44cf36a9ed1951281218b2c545e6ce4e7cdbda courier-prime-1.203.tar.xz"
......@@ -8,23 +8,20 @@ url="https://coverage.readthedocs.io/"
arch="all"
license="Apache-2.0"
depends="python3"
makedepends="python3-dev"
checkdepends="py3-tox"
makedepends="python3-dev"
subpackages=""
source="https://files.pythonhosted.org/packages/35/fe/e7df7289d717426093c68d156e0fd9117c8f4872b6588e8a8928a0f68424/coverage-$pkgver.tar.gz"
source="https://files.pythonhosted.org/packages/source/c/coverage/coverage-$pkgver.tar.gz"
build() {
cd "$builddir"
python3 setup.py build
}
check() {
cd "$builddir"
python3 setup.py check
}
package() {
cd "$builddir"
python3 setup.py install --prefix="/usr" --root="$pkgdir"
}
......
......@@ -8,26 +8,23 @@ url="https://bitheap.org/cram/"
arch="noarch"
license="GPL-2.0-only"
depends="python3"
makedepends="cmd:which"
checkdepends="coverage"
makedepends="cmd:which"
subpackages=""
source="https://bitheap.org/cram/cram-$pkgver.tar.gz
die-py2-die.patch
"
build() {
cd "$builddir"
make PYTHON=python3
}
check() {
cd "$builddir"
# tests are not 100% coverage
make PYTHON=python3 check || true
}
package() {
cd "$builddir"
# we can't use make because there's no --root option
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
......
......@@ -14,7 +14,6 @@ subpackages="$pkgname-doc"
source="https://prdownloads.sourceforge.net/ctags/ctags-$pkgver.tar.gz"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -26,7 +25,6 @@ build() {
}
package() {
cd "$builddir"
install -D -m755 ctags "$pkgdir"/usr/bin/ctags
install -D -m644 ctags.1 "$pkgdir"/usr/share/man/man1/ctags.1
}
......
......@@ -9,9 +9,9 @@ url="https://code.foxkit.us/sroracle/cve-check-tool"
arch="all"
license="GPL-2.0+"
depends=""
makedepends="bash curl-dev glib-dev gobject-introspection-dev
jansson-dev libxml2-dev openssl-dev sqlite-dev"
checkdepends="check-dev"
makedepends="autoconf automake bash curl-dev glib-dev gobject-introspection-dev
jansson-dev libtool libxml2-dev openssl-dev sqlite-dev"
subpackages="$pkgname-doc"
source="https://dev.sick.bike/dist/cve-check-tool-$_pkgver.tar.gz"
builddir="$srcdir/$pkgname-$_pkgver"
......
......@@ -5,13 +5,14 @@ pkgver=1.24
pkgrel=0
pkgdesc="Data recovery tool for block devices with errors"
url="https://www.gnu.org/s/ddrescue/ddrescue.html"
license="GPL-3.0+"
arch="all !aarch64"
license="GPL-3.0+"
depends=""
makedepends=""
subpackages="$pkgname-doc"
source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.lz"
source="https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.lz"
build() {
cd "$builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
......@@ -20,17 +21,10 @@ build() {
}
check() {
cd "$builddir"
# XXX: Some tests fail on s390x, but only on builder, so ignore it for now.
case "$CARCH" in
s390x) make check || true;;
*) make check;;
esac
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
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