Verified Commit 5d4e2c04 authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

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

parent 750ede08
......@@ -6,20 +6,14 @@ pkgrel=0
pkgdesc="Free software implementation of OpenAL ALUT"
url="https://github.com/vancegroup/freealut"
arch="all"
options="!check" # No test suite.
license="LGPL-2.0-only"
depends=""
makedepends="openal-soft-dev"
makedepends="cmake openal-soft-dev"
subpackages="$pkgname-dev"
source="https://distfiles.adelielinux.org/source/freealut-$pkgver.tar.xz"
prepare() {
cd "$builddir"
default_prepare
mkdir build
}
build() {
cd "$builddir"/build
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
......@@ -29,18 +23,16 @@ build() {
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS} \
..
make
-Bbuild
make -C build
}
check() {
cd "$builddir"/build
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
CTEST_OUTPUT_ON_FAILURE=TRUE make -C build test
}
package() {
cd "$builddir"/build
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" -C build install
}
sha512sums="218f52ddc5f26aa6744d4209bb2ec6963e423dccec642ba96f9b6d0c1ee0972b9b86cd2fc4c81e21ba2fce7b6ff5e5150d23083b76602d0704a7e65b52f2cc45 freealut-1.1.0_git20140626.tar.xz"
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer:
pkgname=sdl2_image
_pkgname=SDL2_image
pkgver=2.0.5
pkgrel=0
_pkgname=SDL2_image
pkgdesc="Library to load images of various formats as SDL surfaces"
url="https://www.libsdl.org/projects/SDL_image/"
arch="all"
license="zlib"
depends=""
makedepends="sdl2-dev libjpeg-turbo-dev libpng-dev libwebp-dev tiff-dev
zlib-dev"
subpackages="$pkgname-dev"
......@@ -24,7 +25,6 @@ builddir="$srcdir/$_pkgname-$pkgver"
# - CVE-2019-12221
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -39,12 +39,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -15,13 +15,11 @@ source="https://www.libsdl.org/projects/$_pkgname/release/$_pkgname-$pkgver.tar.
builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
cd "$builddir"
default_prepare
update_config_sub
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -34,12 +32,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -15,13 +15,11 @@ source="https://www.libsdl.org/projects/$_pkgname/release/$_pkgname-$pkgver.tar.
builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
cd "$builddir"
default_prepare
update_config_sub
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -33,12 +31,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -13,7 +13,6 @@ subpackages="$pkgname-dev $pkgname-doc"
source="http://sg.danny.cz/sg/p/sg3_utils-$pkgver.tar.xz"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -25,12 +24,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -7,16 +7,15 @@ pkgdesc="Control and monitor S.M.A.R.T. enabled hard drives"
url="https://www.smartmontools.org/"
arch="all"
license="GPL-2.0+"
depends=""
makedepends="linux-headers"
subpackages="$pkgname-doc $pkgname-openrc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
source="https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
smartd.initd
smartd.confd
"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -26,14 +25,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir"/ install
install -Dm755 "$srcdir"/smartd.initd "$pkgdir"/etc/init.d/smartd
......
......@@ -8,12 +8,12 @@ url="https://google.github.io/snappy/"
arch="all"
[ "$CARCH" = "armhf" ] && options="!check" # does not pass testsuite on armhf
license="BSD-3-Clause"
depends=""
makedepends="cmake"
subpackages="$pkgname-dbg $pkgname-dev"
source="snappy-$pkgver.tar.gz::https://github.com/google/snappy/archive/$pkgver.tar.gz
"
source="snappy-$pkgver.tar.gz::https://github.com/google/snappy/archive/$pkgver.tar.gz"
build() {
cd "$builddir"
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
......@@ -24,17 +24,15 @@ build() {
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS}
${CMAKE_CROSSOPTS} .
make
}
check() {
cd "$builddir"
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -12,10 +12,10 @@ depends=""
makedepends="openssl-dev"
subpackages="$pkgname-doc"
source="http://www.dest-unreach.org/socat/download/socat-$pkgver.tar.gz
netdb-internal.patch"
netdb-internal.patch
"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -27,7 +27,6 @@ build() {
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -20,7 +20,6 @@ source="https://www.spice-space.org/download/releases/spice-server/spice-$pkgver
# - CVE-2018-10873
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -33,12 +32,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -14,8 +14,7 @@ subpackages=""
source="https://github.com/fcambus/spleen/releases/download/$pkgver/spleen-$pkgver.tar.gz"
package() {
local _font
for _font in *.pcf; do
for _font in "$builddir"/*.pcf; do
gzip -9 $_font
install -m644 -Dt "$pkgdir"/usr/share/fonts/X11/misc/ $_font.gz
done
......
......@@ -11,10 +11,8 @@ depends="curl"
makedepends=""
subpackages="tpaste dpaste ix"
source=""
builddir="$srcdir"
package() {
cd "$builddir"
mkdir -p "$pkgdir"/usr/bin
printf "#!/bin/sh\n\nexec curl -F 'sprunge=<-' http://sprunge.us" > \
"$pkgdir"/usr/bin/sprunge
......@@ -22,7 +20,6 @@ package() {
}
tpaste() {
cd "$builddir"
url="http://tpaste.us"
pkgdesc="Helper script to paste things to $url"
mkdir -p "$subpkgdir"/usr/bin
......@@ -32,7 +29,6 @@ tpaste() {
}
dpaste() {
cd "$builddir"
url="http://dpaste.com"
pkgdesc="Helper script to paste things to $url"
mkdir -p "$subpkgdir"/usr/bin
......@@ -42,7 +38,6 @@ dpaste() {
}
ix() {
cd "$builddir"
url="http://ix.io"
pkgdesc="Helper script to paste things to $url"
mkdir -p "$subpkgdir"/usr/bin
......
......@@ -8,8 +8,8 @@ url="https://www.gnu.org/software/stow/"
arch="noarch"
license="GPL-3.0+"
depends="perl"
makedepends="perl-test-output"
checkdepends="perl-io-stringy"
makedepends="perl-test-output"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz"
......
......@@ -13,7 +13,6 @@ subpackages="$pkgname-dev"
source="http://crosswire.org/ftpmirror/pub/sword/source/v1.8/sword-$pkgver.tar.gz"
build() {
cd "$builddir"
CPPFLAGS="$CPPFLAGS -DU_USING_ICU_NAMESPACE" ./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -25,12 +24,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" install_config
}
......
......@@ -7,7 +7,7 @@ pkgrel=0
pkgdesc="Powerful curses-based MUD client"
url="http://tinyfugue.sourceforge.net/"
arch="all"
options="!check" # no tests
options="!check" # No test suite.
license="GPL-2.0+"
depends=""
makedepends="openssl-dev ncurses-dev pcre-dev"
......@@ -22,7 +22,6 @@ source="https://sourceforge.net/projects/tinyfugue/files/tinyfugue/5.0%20beta%20
builddir="$srcdir/tf-$_pkgver"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -34,7 +33,6 @@ build() {
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -9,14 +9,13 @@ arch="all"
options="!check" # Tests are not shipped in the release tarball...
license="Apache-2.0"
depends=""
makedepends="pcre-dev xz-dev zlib-dev"
checkdepends="cram"
makedepends="pcre-dev xz-dev zlib-dev"
subpackages="$pkgname-doc"
source="https://geoff.greer.fm/ag/releases/the_silver_searcher-$pkgver.tar.gz"
builddir="$srcdir/the_silver_searcher-$pkgver"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -28,12 +27,10 @@ build() {
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -8,8 +8,8 @@ pkgrel=0
pkgdesc="Simple, unintrusive panel/taskbar"
url="https://gitlab.com/o9000/tint2"
arch="all"
license="GPL-2.0-only AND GPL-2.0+ AND MIT AND Custom:zlib-optional-acknowledgement"
options="!check" # No test suite.
license="GPL-2.0-only AND GPL-2.0+ AND MIT AND Custom:zlib-optional-acknowledgement"
depends=""
makedepends="cmake imlib2-dev glib-dev pango-dev cairo-dev
libxcomposite-dev libxdamage-dev libxinerama-dev libxrandr-dev
......@@ -19,11 +19,10 @@ source="$pkgname-$pkgver.tar.bz2::https://gitlab.com/o9000/$pkgname/repository/v
prepare() {
mv "$srcdir/$pkgname-v$pkgver"-* "$builddir"
mkdir "$builddir"/build
default_prepare
}
build() {
cd "$builddir"/build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
......@@ -31,13 +30,12 @@ build() {
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
..
make
-Bbuild
make -C build
}
package() {
cd "$builddir"/build
make DESTDIR="$pkgdir" install
make DESTDIR="$pkgdir" -C build install
}
sha512sums="bd5cc461199d38028b81d84f30e896e658274e166e344f4bc98bc6e43c4e25790bc80a7d4aac48d4e9e8284137fd31e4019f0c1b956149222e67a66b42379f1d tint2-16.7.tar.bz2"
......@@ -8,7 +8,7 @@ url=" "
arch="all"
license="Zlib"
depends=""
makedepends=""
makedepends="cmake"
subpackages="$pkgname-dev"
source="tinyxml2-$pkgver.tar.gz::https://github.com/leethomason/tinyxml2/archive/$pkgver.tar.gz"
......@@ -23,7 +23,7 @@ build() {
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS}
${CMAKE_CROSSOPTS} .
make
}
......
......@@ -33,8 +33,7 @@ rdw() {
pkgdesc="Linux Advanced Power Management - Radio Device Wizard"
depends="tlp"
cd "$builddir"
make DESTDIR="$subpkgdir" TLP_WITH_SYSTEMD=0 install-rdw
make DESTDIR="$subpkgdir" TLP_WITH_SYSTEMD=0 -C "$builddir" install-rdw
}
bashcomp() {
......
......@@ -11,7 +11,7 @@ license="GPL-2.0+"
depends=""
makedepends="freealut-dev freeglut-dev libogg-dev libpng-dev libsm-dev
libvorbis-dev libxmu-dev libxrandr-dev libxrender-dev libxt-dev mesa-dev
openal-soft-dev plib-dev zlib-dev"
openal-soft-dev plib-dev zlib-dev autoconf automake"
subpackages="$pkgname-data::noarch"
source="https://sourceforge.net/projects/torcs/files/all-in-one/$pkgver/torcs-$pkgver.tar.bz2
torcs-1.3.6-as-needed.patch
......@@ -22,7 +22,6 @@ source="https://sourceforge.net/projects/torcs/files/all-in-one/$pkgver/torcs-$p
"
build() {
cd "$builddir"
export CXXFLAGS="$CXXFLAGS -fpermissive" # GCC 8
autoreconf
./configure \
......@@ -36,16 +35,14 @@ build() {
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
data() {
pkgdesc="Data files for TORCS"
cd "$builddir"
mkdir -p "$subpkgdir"/usr/share/games
chgrp games "$subpkgdir"/usr/share/games
make DESTDIR="$subpkgdir" datainstall
make DESTDIR="$subpkgdir" -C "$builddir" datainstall
}
sha512sums="14b88624803c746b2f356fa185aca5be56b7d7e5192fede11307474100328bfaa67eafa61e84987bbad04590ae5740127e015707723df6d2c3197bb867818101 torcs-1.3.7.tar.bz2
......
......@@ -6,21 +6,18 @@ pkgrel=0
pkgdesc="Utility to trace the network route of packets"
url="http://traceroute.sourceforge.net/"
arch="all"
options="!check" # No test suite.
license="GPL-2.0"
depends=""
makedepends=""
install=""
options="!check"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
build() {
cd "$builddir"
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" prefix="/usr" install
ln -s traceroute "$pkgdir"/usr/bin/traceroute6
}
......
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