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

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

parent 095e14b7
......@@ -11,9 +11,9 @@ depends="bash"
makedepends="alsa-lib-dev cmake eudev-dev qt5-qtbase-dev qt5-qtsvg-dev
qt5-qttools-dev"
subpackages="$pkgname-doc $pkgname-lang"
langdir="/usr/share/qastools/l10n"
source="https://gitlab.com/sebholt/qastools/-/archive/v$pkgver/qastools-v$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-v$pkgver"
langdir="/usr/share/qastools/l10n"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
......@@ -24,8 +24,7 @@ build() {
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DCMAKE_C_FLAGS="$CFLAGS" \
${CMAKE_CROSSOPTS}
${CMAKE_CROSSOPTS} .
make
}
......
......@@ -15,13 +15,11 @@ source="qml-box2d-$pkgver.tar.gz::https://github.com/qml-box2d/qml-box2d/archive
builddir="$srcdir/qml-box2d-$_hash"
build() {
cd "$builddir"
qmake
make
}
package() {
cd "$builddir"
make install INSTALL_ROOT="$pkgdir"
}
......
......@@ -7,8 +7,8 @@ url="http://qpdf.sourceforge.net"
arch="all"
license="Apache-2.0 OR Artistic-2.0"
depends=""
makedepends="bash libjpeg-turbo-dev zlib-dev"
checkdepends="coreutils perl"
makedepends="bash libjpeg-turbo-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs
$pkgname-fix-qdf:fix_qdf:noarch"
source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
......
......@@ -9,7 +9,7 @@ arch="all"
options="!check" # No test suite.
license="GPL-2.0+"
depends=""
makedepends="cups-dev djvulibre-dev gnutls-dev libspectre-dev
makedepends="cups-dev djvulibre-dev gnutls-dev libspectre-dev poppler-dev
poppler-qt5-dev qt5-qttools-dev qt5-qtbase-dev qt5-qtsvg-dev"
subpackages="$pkgname-doc"
source="https://launchpad.net/qpdfview/trunk/$pkgver/+download/$pkgname-$pkgver.tar.gz"
......
......@@ -6,16 +6,14 @@ pkgrel=0
pkgdesc="Platform-independent Qt-based API for storing passwords securely"
url="https://github.com/frankosterfeld/qtkeychain"
arch="all"
options="!check" # no tests
options="!check" # No test suite.
license="BSD-3-Clause"
depends_dev=""
depends=""
makedepends="cmake extra-cmake-modules qt5-qtbase-dev qt5-qttools-dev"
install=""
subpackages="$pkgname-dev"
source="qtkeychain-$pkgver.tar.gz::https://github.com/frankosterfeld/qtkeychain/archive/v$pkgver.tar.gz"
build() {
cd "$builddir"
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
......@@ -26,22 +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
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -11,7 +11,8 @@ depends="$pkgname-client $pkgname-core"
makedepends="qt5-qtbase-dev qt5-qtmultimedia-dev libdbusmenu-qt-dev sonnet-dev
extra-cmake-modules kconfigwidgets-dev kcoreaddons-dev kxmlgui-dev
knotifications-dev knotifyconfig-dev ktextwidgets-dev qt5-qtscript-dev
kwidgetsaddons-dev qca-dev qt5-qttools-dev zlib-dev libexecinfo-dev"
kwidgetsaddons-dev qca-dev qt5-qttools-dev zlib-dev libexecinfo-dev
cmake"
langdir="/usr/share/quassel/translations"
subpackages="$pkgname-core $pkgname-client $pkgname-lang"
source="https://quassel-irc.org/pub/quassel-$pkgver.tar.bz2
......@@ -24,7 +25,6 @@ source="https://quassel-irc.org/pub/quassel-$pkgver.tar.bz2
# - CVE-2018-1000179
build() {
cd "$builddir"
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
......@@ -38,17 +38,15 @@ build() {
-DUSE_QT5=ON \
-DWITH_KDE=ON \
-DWITH_WEBENGINE=OFF \
${CMAKE_CROSSOPTS}
${CMAKE_CROSSOPTS} .
make
}
check() {
cd "$builddir"
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......@@ -58,7 +56,6 @@ client() {
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/quasselclient "$subpkgdir"/usr/bin/
local dir
for dir in applications icons pixmaps knotifications5; do
mkdir -p "$subpkgdir"/usr/share/$dir
mv "$pkgdir"/usr/share/$dir "$subpkgdir"/usr/share/
......
......@@ -25,7 +25,7 @@ build() {
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
${CMAKE_CROSSOPTS}
${CMAKE_CROSSOPTS} .
make
}
......
......@@ -9,14 +9,11 @@ arch="all"
options="!check" # no tests
license="GPL-2.0+"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
makedepends=""
subpackages="$pkgname-doc"
source="http://www.colm.net/files/ragel/ragel-$pkgver.tar.gz"
build() {
cd "$builddir"
export CXXFLAGS="$CXXFLAGS -std=gnu++98"
./configure \
--build=$CBUILD \
......@@ -26,13 +23,11 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
}
sha512sums="6c1fe4f6fa8546ae28b92ccfbae94355ff0d3cea346b9ae8ce4cf6c2bdbeb823e0ccd355332643ea72d3befd533a8b3030ddbf82be7ffa811c2c58cbb01aaa38 ragel-6.10.tar.gz"
......@@ -10,7 +10,7 @@ arch="all"
license="Public-Domain AND (LGPL-2.1+ OR GPL-2.0+ OR Apache-2.0+)"
depends=""
depends_dev="curl-dev libxml2-dev libxslt-dev yajl-dev"
makedepends="$depends_dev"
makedepends="$depends_dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="http://download.librdf.org/source/$pkgname-$pkgver.tar.gz"
......@@ -21,7 +21,6 @@ prepare() {
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -35,14 +34,12 @@ build() {
}
check() {
cd "$builddir"
# Note: some tests are shown as FAIL but they are actually XFAIL :)
# As long as the return status is zero we are fine
make check -j1
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -20,7 +20,6 @@ prepare() {
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -34,12 +33,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -21,7 +21,6 @@ prepare() {
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -35,12 +34,10 @@ build() {
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -7,14 +7,13 @@ pkgdesc="Adjust the color temperature of your screen according to your surroundi
url="http://jonls.dk/redshift/"
arch="all"
license="GPL-3.0+"
options="!check" # No test suite
options="!check" # No test suite.
depends=""
makedepends="glib-dev intltool libdrm-dev libx11-dev libxcb-dev libxxf86vm-dev"
subpackages="$pkgname-doc $pkgname-gui $pkgname-lang"
source="https://github.com/jonls/redshift/releases/download/v$pkgver/redshift-$pkgver.tar.xz"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -35,13 +34,12 @@ build() {
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
doc() {
cd "$builddir"
install -Dm644 -t "$subpkgdir/usr/share/doc/$pkgname" redshift.conf.sample
install -Dm644 -t "$subpkgdir/usr/share/doc/$pkgname" \
"$builddir"/redshift.conf.sample
default_doc
}
......
......@@ -10,18 +10,16 @@ options="!check" # No test suite.
license="MIT"
depends=""
makedepends=""
install=""
subpackages="$pkgname-doc"
source="https://www.kernel.org/pub/software/network/rfkill/rfkill-$pkgver.tar.xz
dont-use-git.patch"
dont-use-git.patch
"
build() {
cd "$builddir"
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -8,6 +8,7 @@ pkgdesc="Recursively searches directories for a regex pattern"
url="https://github.com/BurntSushi/ripgrep"
arch="all"
license="Unlicense"
depends=""
makedepends="cargo pcre2-dev"
subpackages="$pkgname-zsh-completion:_zshcomp:noarch"
source=""
......
......@@ -7,6 +7,7 @@ pkgdesc="Image viewer for the XFCE desktop environment"
url="https://xfce.org"
arch="all"
license="GPL-2.0+ AND LGPL-2.0+"
depends=""
makedepends="intltool libexif-dev gtk+2.0-dev libxfce4util-dev libxfce4ui-dev
libmagic"
subpackages="$pkgname-lang"
......
......@@ -9,15 +9,15 @@ arch="all"
options="!check" # No test suite.
license="BSD-3-Clause"
depends=""
install="$pkgname.pre-install $pkgname.pre-upgrade"
makedepends="libtirpc-dev bsd-compat-headers"
install="$pkgname.pre-install $pkgname.pre-upgrade"
subpackages="$pkgname-dbg $pkgname-doc $pkgname-openrc"
source="http://downloads.sourceforge.net/project/rpcbind/rpcbind/$pkgver/rpcbind-$pkgver.tar.bz2
rpcbind.initd
rpcbind.confd"
rpcbind.confd
"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -32,12 +32,12 @@ build() {
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
install -Dm755 "$srcdir"/rpcbind.initd "$pkgdir"/etc/init.d/rpcbind
install -Dm644 "$srcdir"/rpcbind.confd "$pkgdir"/etc/conf.d/rpcbind
install -D -m644 COPYING "$pkgdir"/usr/share/licenses/rpcbind/COPYING
}
sha512sums="e884c4757950ccead0f9a07f50625a63e6f18f9bfae9fcfffa3e5fa4b7a66c3a99d9fa303061848fe8211509d5456f24ff26e4579af6e161a35522268f3ef3e4 rpcbind-1.2.5.tar.bz2
1cd655d86226a45fa3e927f8ac2bb580537644d2fb3684e0f4a956bf3721c95d95b8b8c1d9a2a742fb714eeba9277e0400a7493bf1bf676466d70adb2b35a88e rpcbind.initd
0641087162ebc8fb10c5cb329105261d77cad073daed3f9a6c92574177298cd8a19a87b62dde14161cc554b5e68680cfd870b5334f3cfd8d6074ec8a43f4dfe3 rpcbind.confd"
......@@ -13,7 +13,6 @@ subpackages="$pkgname-doc"
source="https://github.com/thkukuk/rpcsvc-proto/releases/download/v$pkgver/rpcsvc-proto-$pkgver.tar.gz"
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
}
......
......@@ -13,17 +13,14 @@ subpackages=""
source="https://distfiles.adelielinux.org/source/rpm2targz-$pkgver.tar.xz"
build() {
cd "$builddir"
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
......
......@@ -13,7 +13,8 @@ depends_dev="zlib-dev"
makedepends="$depends_dev linux-headers openssl-dev"
subpackages="$pkgname-dev $pkgname-doc librtmp"
source="https://distfiles.adelielinux.org/source/rtmpdump-$pkgver.tar.xz
fix-chunk-size.patch"
fix-chunk-size.patch
"
build() {
make
......
......@@ -15,7 +15,6 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/halostatue/$_gemname/archive
builddir="$srcdir/$_gemname-$pkgver"
build() {
cd "$builddir"
gem build $_gemname.gemspec
}
......@@ -23,7 +22,6 @@ package() {
local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
local geminstdir="$gemdir/gems/$_gemname-$pkgver"
cd "$builddir"
gem install --local \
--install-dir "$gemdir" \
--bindir "$pkgdir/usr/bin" \
......
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