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

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

parent 5efd7da9
...@@ -7,8 +7,8 @@ pkgrel=2 ...@@ -7,8 +7,8 @@ pkgrel=2
pkgdesc="68K and PowerPC fixed disk partitioning utility" pkgdesc="68K and PowerPC fixed disk partitioning utility"
url="https://adelielinux.org/" url="https://adelielinux.org/"
arch="all !aarch64" # Literally does not support this arch. arch="all !aarch64" # Literally does not support this arch.
license="GPL-2.0"
options="!check" # No test suite. options="!check" # No test suite.
license="GPL-2.0"
depends="" depends=""
makedepends="linux-headers" makedepends="linux-headers"
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
...@@ -23,16 +23,15 @@ source="https://distfiles.adelielinux.org/source/mac-fdisk_0.1.orig.tar.gz ...@@ -23,16 +23,15 @@ source="https://distfiles.adelielinux.org/source/mac-fdisk_0.1.orig.tar.gz
mac-fdisk-large-disk-support.patch mac-fdisk-large-disk-support.patch
mac-fdisk-largerthan2gb.patch mac-fdisk-largerthan2gb.patch
mac-fdisk-non-glibc-support.patch mac-fdisk-non-glibc-support.patch
flush-stdout.patch" flush-stdout.patch
"
builddir="$srcdir/$pkgname-$_pkgver.orig" builddir="$srcdir/$pkgname-$_pkgver.orig"
build() { build() {
cd "$builddir"
make CFLAGS="-D_GNU_SOURCE" make CFLAGS="-D_GNU_SOURCE"
} }
package() { package() {
cd "$builddir"
mkdir -p "$pkgdir"/sbin mkdir -p "$pkgdir"/sbin
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
......
...@@ -14,7 +14,6 @@ subpackages="$pkgname-doc" ...@@ -14,7 +14,6 @@ subpackages="$pkgname-doc"
source="http://www.codon.org.uk/~mjg59/mactel-boot/mactel-boot-$pkgver.tar.bz2" source="http://www.codon.org.uk/~mjg59/mactel-boot/mactel-boot-$pkgver.tar.bz2"
build() { build() {
cd "$builddir"
make hfs-bless make hfs-bless
} }
......
...@@ -6,12 +6,12 @@ pkgrel=0 ...@@ -6,12 +6,12 @@ pkgrel=0
pkgdesc="Portable multi-system emulator" pkgdesc="Portable multi-system emulator"
url="https://mednafen.github.io/" url="https://mednafen.github.io/"
arch="all !s390x" arch="all !s390x"
options="!check !dbg" # mednafen does not ship actual tests options="!check !dbg" # mednafen does not ship actual tests
subpackages="$pkgname-lang" subpackages="$pkgname-lang"
license="GPL-2.0-only" license="GPL-2.0-only"
depends="" depends=""
makedepends="alsa-lib-dev flac-dev libogg-dev libsndfile-dev libvorbis-dev makedepends="alsa-lib-dev flac-dev libogg-dev libsndfile-dev libvorbis-dev
lzo-dev sdl2-dev zlib-dev" lzo-dev sdl2-dev zlib-dev autoconf automake"
source="https://mednafen.github.io/releases/files/$pkgname-$pkgver.tar.xz source="https://mednafen.github.io/releases/files/$pkgname-$pkgver.tar.xz
ppc.patch ppc.patch
ppc64.patch ppc64.patch
......
...@@ -5,15 +5,15 @@ pkgname=mesa-demos ...@@ -5,15 +5,15 @@ pkgname=mesa-demos
pkgver=8.4.0 pkgver=8.4.0
pkgrel=1 pkgrel=1
pkgdesc="Mesa demos and utils" pkgdesc="Mesa demos and utils"
url="http://mesa3d.org" url="https://mesa3d.org"
arch="all" arch="all"
options="!check" # No test suite.
license="X11" license="X11"
options="!check" # No testsuite depends=""
makedepends="mesa-dev glew-dev glu-dev freeglut-dev freetype-dev libtool" makedepends="mesa-dev glew-dev glu-dev freeglut-dev freetype-dev libtool"
source="ftp://ftp.freedesktop.org/pub/mesa/demos/$pkgname-$pkgver.tar.bz2" source="https://mesa.freedesktop.org/archive/demos/$pkgname-$pkgver.tar.bz2"
build() { build() {
cd "$builddir"
export LDFLAGS="$LDFLAGS -Wl,-z,lazy" export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
...@@ -23,7 +23,6 @@ build() { ...@@ -23,7 +23,6 @@ build() {
} }
package() { package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install make -j1 DESTDIR="$pkgdir" install
# conflicts with X11 bitmap tool # conflicts with X11 bitmap tool
mv "$pkgdir"/usr/bin/bitmap "$pkgdir"/usr/bin/bitmap-demo mv "$pkgdir"/usr/bin/bitmap "$pkgdir"/usr/bin/bitmap-demo
......
...@@ -16,13 +16,11 @@ source="http://www.codesink.org/download/mimetic-$pkgver.tar.gz ...@@ -16,13 +16,11 @@ source="http://www.codesink.org/download/mimetic-$pkgver.tar.gz
" "
prepare() { prepare() {
cd "$builddir"
default_prepare default_prepare
update_config_sub update_config_sub
} }
build() { build() {
cd "$builddir"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -34,12 +32,10 @@ build() { ...@@ -34,12 +32,10 @@ build() {
} }
check() { check() {
cd "$builddir"
make check make check
} }
package() { package() {
cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
pkgname=minicom pkgname=minicom
pkgver=2.7.1 pkgver=2.7.1
pkgrel=0 pkgrel=0
pkgdesc="menu driven communications program for terminals" pkgdesc="Menu-driven communications program for terminals"
url="https://fossies.org/linux/minicom/" url="https://fossies.org/linux/minicom/"
arch="all" arch="all"
license="GPL-2.0+" license="GPL-2.0+"
...@@ -11,10 +11,10 @@ depends="" ...@@ -11,10 +11,10 @@ depends=""
makedepends="ncurses-dev gettext-tiny-dev linux-headers" makedepends="ncurses-dev gettext-tiny-dev linux-headers"
subpackages="$pkgname-doc $pkgname-lang" subpackages="$pkgname-doc $pkgname-lang"
source="https://fossies.org/linux/misc/$pkgname-$pkgver.tar.gz source="https://fossies.org/linux/misc/$pkgname-$pkgver.tar.gz
fix-includes.patch" fix-includes.patch
"
build() { build() {
cd "$builddir"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -26,12 +26,10 @@ build() { ...@@ -26,12 +26,10 @@ build() {
} }
check() { check() {
cd "$builddir"
make check make check
} }
package() { package() {
cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
} }
......
...@@ -8,12 +8,12 @@ url="http://mirbsd.de/mksh" ...@@ -8,12 +8,12 @@ url="http://mirbsd.de/mksh"
arch="all" arch="all"
license="MirOS OR ISC" license="MirOS OR ISC"
depends="" depends=""
makedepends=""
checkdepends="ed perl" checkdepends="ed perl"
makedepends=""
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
install="mksh.post-install mksh.post-upgrade mksh.pre-deinstall" install="mksh.post-install mksh.post-upgrade mksh.pre-deinstall"
source="http://www.mirbsd.org/MirOS/dist/mir/${pkgname}/${pkgname}-R${pkgver}.tgz" source="http://www.mirbsd.org/MirOS/dist/mir/${pkgname}/${pkgname}-R${pkgver}.tgz"
builddir=$srcdir/$pkgname builddir="$srcdir"/$pkgname
build() { build() {
# Build the main shell: # Build the main shell:
...@@ -27,10 +27,10 @@ build() { ...@@ -27,10 +27,10 @@ build() {
} }
check() { check() {
echo "Running the test suite for mksh:" msg "Running the test suite for mksh"
./test_mksh.sh ./test_mksh.sh
echo "Running the test suite for lksh:" msg "Running the test suite for lksh:"
./test_lksh.sh ./test_lksh.sh
} }
......
...@@ -15,8 +15,7 @@ source="https://raw.githubusercontent.com/larsenwork/monoid/2db2d289f4e61010dd3f ...@@ -15,8 +15,7 @@ source="https://raw.githubusercontent.com/larsenwork/monoid/2db2d289f4e61010dd3f
builddir="$srcdir/" builddir="$srcdir/"
package() { package() {
cd "$builddir" install -m644 -Dt "$pkgdir"/usr/share/fonts/X11/TTF/ "$builddir"/*.ttf
install -m644 -Dt "$pkgdir"/usr/share/fonts/X11/TTF/ *.ttf
} }
sha512sums="2776bbc7febf17c10f87bbdd3e6e4fd7c24b93286009d1dcb0ca8058e1e1437c3179068ab608c3f69ae07c08950ececb4d0ad88e82ccba4a6bd2d8b63f71a9c8 Monoid-Small.zip" sha512sums="2776bbc7febf17c10f87bbdd3e6e4fd7c24b93286009d1dcb0ca8058e1e1437c3179068ab608c3f69ae07c08950ececb4d0ad88e82ccba4a6bd2d8b63f71a9c8 Monoid-Small.zip"
...@@ -7,6 +7,7 @@ pkgdesc="Simple text editor for the XFCE desktop environment" ...@@ -7,6 +7,7 @@ pkgdesc="Simple text editor for the XFCE desktop environment"
url="https://xfce.org" url="https://xfce.org"
arch="all" arch="all"
license="GPL-2.0+" license="GPL-2.0+"
depends=""
makedepends="dbus-glib-dev glib-dev gtk+3.0-dev gtksourceview-3.0-dev intltool makedepends="dbus-glib-dev glib-dev gtk+3.0-dev gtksourceview-3.0-dev intltool
xfconf-dev" xfconf-dev"
subpackages="$pkgname-lang" subpackages="$pkgname-lang"
......
...@@ -41,15 +41,13 @@ build() { ...@@ -41,15 +41,13 @@ build() {
} }
package() { package() {
cd "$builddir"/curses make DESTDIR="$pkgdir" -C curses install
make DESTDIR="$pkgdir" install
} }
gtk() { gtk() {
pkgdesc="Graphical traceroute tool" pkgdesc="Graphical traceroute tool"
depends="" depends=""
cd "$builddir"/gtk make DESTDIR="$subpkgdir" -C "$builddir"/gtk install
make DESTDIR="$subpkgdir" install
install -D -m 644 "$srcdir"/mtr-gtk.desktop \ install -D -m 644 "$srcdir"/mtr-gtk.desktop \
"$subpkgdir"/usr/share/applications/mtr-gtk.desktop "$subpkgdir"/usr/share/applications/mtr-gtk.desktop
install -D -m 644 "$builddir"/img/mtr_icon.xpm \ install -D -m 644 "$builddir"/img/mtr_icon.xpm \
......
...@@ -8,7 +8,7 @@ url=" " ...@@ -8,7 +8,7 @@ url=" "
arch="all" arch="all"
license="GPL-2.0+" license="GPL-2.0+"
depends="" depends=""
makedepends="" makedepends="autoconf automake libtool"
subpackages="$pkgname-dev" subpackages="$pkgname-dev"
source="musl-obstack-$pkgver.tar.gz::https://github.com/pullmoll/musl-obstack/archive/v$pkgver.tar.gz" source="musl-obstack-$pkgver.tar.gz::https://github.com/pullmoll/musl-obstack/archive/v$pkgver.tar.gz"
......
...@@ -8,13 +8,13 @@ url="http://hunspell.github.io/" ...@@ -8,13 +8,13 @@ url="http://hunspell.github.io/"
arch="all" arch="all"
options="!check" # No test suite. options="!check" # No test suite.
license="Custom" license="Custom"
subpackages="$pkgname-dev" depends=""
depends_dev="perl hunspell-dev" depends_dev="perl hunspell-dev"
makedepends="$depends_dev" makedepends="$depends_dev"
source="http://downloads.sourceforge.net/hunspell/$pkgname-$pkgver.tar.gz" subpackages="$pkgname-dev"
source="https://downloads.sourceforge.net/hunspell/$pkgname-$pkgver.tar.gz"
build() { build() {
cd "$builddir"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -30,7 +30,6 @@ build() { ...@@ -30,7 +30,6 @@ build() {
} }
package() { package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install make -j1 DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
} }
......
...@@ -6,12 +6,13 @@ pkgdesc="80x86 assembler designed for portability and modularity" ...@@ -6,12 +6,13 @@ pkgdesc="80x86 assembler designed for portability and modularity"
url="https://www.nasm.us/" url="https://www.nasm.us/"
arch="all" arch="all"
license="BSD-2-Clause" license="BSD-2-Clause"
depends=""
checkdepends="perl" checkdepends="perl"
makedepends=""
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="https://www.nasm.us/pub/nasm/releasebuilds/$pkgver/$pkgname-$pkgver.tar.bz2" source="https://www.nasm.us/pub/nasm/releasebuilds/$pkgver/$pkgname-$pkgver.tar.bz2"
build () { build () {
cd "$builddir"
export CFLAGS= export CFLAGS=
export CXXFLAGS= export CXXFLAGS=
./configure \ ./configure \
...@@ -22,12 +23,10 @@ build () { ...@@ -22,12 +23,10 @@ build () {
} }
check() { check() {
cd "$builddir"
make test make test
} }
package() { package() {
cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
} }
......
...@@ -8,13 +8,12 @@ url="http://www.ncftp.com/" ...@@ -8,13 +8,12 @@ url="http://www.ncftp.com/"
arch="all" arch="all"
options="!check" # No test suite. options="!check" # No test suite.
license="ClArtistic" license="ClArtistic"
depends=""
makedepends="ncurses-dev" makedepends="ncurses-dev"
source="ftp://ftp.ncftp.com/ncftp/$pkgname-$pkgver-src.tar.gz"
subpackages="$pkgname-doc $pkgname-bookmarks" subpackages="$pkgname-doc $pkgname-bookmarks"
source="ftp://ftp.ncftp.com/ncftp/$pkgname-$pkgver-src.tar.gz"
build () { build() {
cd "$builddir"
LIBS="-ltinfo" ./configure \ LIBS="-ltinfo" ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -22,22 +21,18 @@ build () { ...@@ -22,22 +21,18 @@ build () {
--sysconfdir=/etc \ --sysconfdir=/etc \
--mandir=/usr/share/man --mandir=/usr/share/man
cd "$builddir"/libncftp make -C libncftp shared
make shared
cd "$builddir"
make make
} }
package() { package() {
cd "$builddir"/libncftp make PREFIX="${pkgdir}"/usr -C libncftp soinstall
make PREFIX="${pkgdir}"/usr soinstall
cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
install -D doc/LICENSE.txt \ install -D doc/LICENSE.txt \
"$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
} }
bookmarks () { bookmarks() {
mkdir -p "$subpkgdir"/usr/bin mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/ncftpbookmarks \ mv "$pkgdir"/usr/bin/ncftpbookmarks \
"$subpkgdir"/usr/bin/ "$subpkgdir"/usr/bin/
......
...@@ -8,6 +8,8 @@ url="https://github.com/vapier/ncompress" ...@@ -8,6 +8,8 @@ url="https://github.com/vapier/ncompress"
arch="all" arch="all"
options="!check" # No test suite. options="!check" # No test suite.
license="Public-Domain" license="Public-Domain"
depends=""
makedepends=""
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/ncompress/ncompress-$pkgver.tar.gz source="https://downloads.sourceforge.net/ncompress/ncompress-$pkgver.tar.gz
fix-9bit-compress.patch" fix-9bit-compress.patch"
......
...@@ -14,12 +14,10 @@ subpackages="$pkgname-doc $pkgname-openrc" ...@@ -14,12 +14,10 @@ subpackages="$pkgname-doc $pkgname-openrc"
source="https://gitweb.gentoo.org/proj/$pkgname.git/snapshot/$pkgname-$pkgver.tar.gz" source="https://gitweb.gentoo.org/proj/$pkgname.git/snapshot/$pkgname-$pkgver.tar.gz"
build() { build() {
cd "$builddir"
make UDEVDIR=/lib/udev LIBEXECDIR=/lib/$pkgname PF="$pkgname-$pkgver" make UDEVDIR=/lib/udev LIBEXECDIR=/lib/$pkgname PF="$pkgname-$pkgver"
} }
package() { package() {
cd "$builddir"
make UDEVDIR=/lib/udev LIBEXECDIR=/lib/$pkgname DESTDIR="$pkgdir" install make UDEVDIR=/lib/udev LIBEXECDIR=/lib/$pkgname DESTDIR="$pkgdir" install
for doc in README CREDITS TODO; do for doc in README CREDITS TODO; do
install -m 644 "$builddir"/$doc "$pkgdir"/usr/share/doc/$pkgname/ install -m 644 "$builddir"/$doc "$pkgdir"/usr/share/doc/$pkgname/
......
...@@ -7,13 +7,13 @@ pkgdesc="The qmail mail transfer agent (community version)" ...@@ -7,13 +7,13 @@ pkgdesc="The qmail mail transfer agent (community version)"
url="http://www.netqmail.org/" url="http://www.netqmail.org/"
arch="all" arch="all"
license="Public-Domain" license="Public-Domain"
provides=sendmail
options="suid !check" # suid programs (qmail-queue); no test suite options="suid !check" # suid programs (qmail-queue); no test suite
depends="execline s6 s6-networking" depends="execline s6 s6-networking"
makedepends="utmps-dev" makedepends="utmps-dev"
subpackages="$pkgname-doc $pkgname-openrc" subpackages="$pkgname-doc $pkgname-openrc"
install="$pkgname.post-install $pkgname.pre-deinstall"
provider_priority=1 provider_priority=1
provides="sendmail"
install="$pkgname.post-install $pkgname.pre-deinstall"
source="http://www.netqmail.org/$pkgname-$pkgver.tar.gz source="http://www.netqmail.org/$pkgname-$pkgver.tar.gz
0001-DESTDIR.patch 0001-DESTDIR.patch
0002-qbiffutmpx-20170820.patch 0002-qbiffutmpx-20170820.patch
...@@ -66,7 +66,6 @@ makeservicedir() ...@@ -66,7 +66,6 @@ makeservicedir()
} }
build() { build() {
cd "$builddir"
echo "$CC $CFLAGS" > conf-cc echo "$CC $CFLAGS" > conf-cc
echo "$CC $LDFLAGS -s -static" > conf-ld echo "$CC $LDFLAGS -s -static" > conf-ld
echo "$CC $LDFLAGS" > conf-ldi # because fakeroot doesn't work with static programs echo "$CC $LDFLAGS" > conf-ldi # because fakeroot doesn't work with static programs
...@@ -79,7 +78,6 @@ build() { ...@@ -79,7 +78,6 @@ build() {
} }
package() { package() {
cd "$builddir"
mkdir -p -m 0755 "$pkgdir"/var/qmail/services "$pkgdir"/var/log/qmail "$pkgdir"/usr/bin "$pkgdir"/usr/sbin "$pkgdir"/usr/share/doc "$pkgdir"/etc/qmail/services "$pkgdir"/etc/conf.d "$pkgdir"/etc/init.d mkdir -p -m 0755 "$pkgdir"/var/qmail/services "$pkgdir"/var/log/qmail "$pkgdir"/usr/bin "$pkgdir"/usr/sbin "$pkgdir"/usr/share/doc "$pkgdir"/etc/qmail/services "$pkgdir"/etc/conf.d "$pkgdir"/etc/init.d
chown qmaill:qmaill "$pkgdir"/var/log/qmail chown qmaill:qmaill "$pkgdir"/var/log/qmail
chmod 2700 "$pkgdir"/var/log/qmail chmod 2700 "$pkgdir"/var/log/qmail
......
...@@ -10,7 +10,7 @@ arch="all" ...@@ -10,7 +10,7 @@ arch="all"
options="!check" # No test suite. options="!check" # No test suite.
license="LGPL-2.0-only" license="LGPL-2.0-only"
depends="" depends=""
makedepends="popt-dev slang-dev" makedepends="autoconf automake popt-dev slang-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://pagure.io/newt/archive/r$_pkgver/newt-r$_pkgver.tar.gz" source="https://pagure.io/newt/archive/r$_pkgver/newt-r$_pkgver.tar.gz"
builddir="$srcdir/newt-r$_pkgver" builddir="$srcdir/newt-r$_pkgver"
......
# Contributor: Daniel Sabogal <dsabogalcc@gmail.com> # Contributor: Daniel Sabogal <dsabogalcc@gmail.com>
# Maintainer: Dan Theisen <djt@hxx.in> # Maintainer: Dan Theisen <djt@hxx.in>
pkgname=numactl pkgname=numactl
pkgver=2.0.13 pkgver=2.0.13
pkgrel=0 pkgrel=0
...@@ -8,10 +8,12 @@ url="https://github.com/numactl/numactl" ...@@ -8,10 +8,12 @@ url="https://github.com/numactl/numactl"
# ARM lacks the __NR_migrate_pages syscall # ARM lacks the __NR_migrate_pages syscall
arch="all !armhf !armv7" arch="all !armhf !armv7"
license="GPL-2.0+ AND LGPL-2.1" license="GPL-2.0+ AND LGPL-2.1"
depends=""
makedepends="autoconf automake libtool linux-headers" makedepends="autoconf automake libtool linux-headers"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="$pkgname-$pkgver.tar.gz::https://github.com/numactl/$pkgname/archive/v$pkgver.tar.gz source="$pkgname-$pkgver.tar.gz::https://github.com/numactl/$pkgname/archive/v$pkgver.tar.gz
musl.patch" musl.patch
"
prepare() { prepare() {
default_prepare default_prepare
......
...@@ -17,13 +17,10 @@ source="https://binaries.openttd.org/extra/opengfx/$pkgver/$pkgname-$pkgver-sour ...@@ -17,13 +17,10 @@ source="https://binaries.openttd.org/extra/opengfx/$pkgver/$pkgname-$pkgver-sour
builddir="$srcdir/$pkgname-$pkgver-source" builddir="$srcdir/$pkgname-$pkgver-source"
build() { build() {
cd "$builddir"
make GIMP="" _V="" bundle_tar make GIMP="" _V="" bundle_tar
} }