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

user/various libraries: modernise / fix syntax

parent 092ad87b
...@@ -3,35 +3,33 @@ pkgname=autoconf2.13 ...@@ -3,35 +3,33 @@ pkgname=autoconf2.13
pkgver=2.13 pkgver=2.13
pkgrel=2 pkgrel=2
pkgdesc="A GNU tool for automatically configuring source code" pkgdesc="A GNU tool for automatically configuring source code"
url="https://www.gnu.org/software/autoconf"
arch="noarch" arch="noarch"
license="GPL-2.0" license="GPL-2.0"
url="https://www.gnu.org/software/autoconf"
depends="m4 perl" depends="m4 perl"
checkdepends="dejagnu flex gfortran" checkdepends="dejagnu flex gfortran"
source="ftp://ftp.gnu.org/pub/gnu/autoconf/autoconf-${pkgver}.tar.gz makedepends=""
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/pub/gnu/autoconf/autoconf-${pkgver}.tar.gz
getloadavg.patch getloadavg.patch
" "
subpackages="$pkgname-doc"
builddir="$srcdir"/autoconf-$pkgver builddir="$srcdir"/autoconf-$pkgver
prepare() { prepare() {
default_prepare default_prepare
update_config_sub # Required for AC_F77_LIBRARY_LDFLAGS update_config_sub # Required for AC_F77_LIBRARY_LDFLAGS
} }
build() { build() {
cd "$builddir"
M4=/usr/bin/m4 ./configure --prefix=/usr --program-suffix=-2.13 M4=/usr/bin/m4 ./configure --prefix=/usr --program-suffix=-2.13
make make
} }
check() { check() {
cd "$builddir"
F77=gfortran make check F77=gfortran make check
} }
package() { package() {
cd "$builddir"
make prefix="$pkgdir/usr" infodir="$pkgdir/usr/share/info" install make prefix="$pkgdir/usr" infodir="$pkgdir/usr/share/info" install
rm -f "$pkgdir"/usr/share/info/dir rm -f "$pkgdir"/usr/share/info/dir
......
...@@ -6,18 +6,17 @@ pkgdesc="Spell checker and morphological analyzer library and program" ...@@ -6,18 +6,17 @@ pkgdesc="Spell checker and morphological analyzer library and program"
url="https://hunspell.github.io/" url="https://hunspell.github.io/"
arch="all" arch="all"
license="GPL-2.0+ AND LGPL-2.0+ AND MPL-1.1" license="GPL-2.0+ AND LGPL-2.0+ AND MPL-1.1"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" depends=""
makedepends="ncurses-dev autoconf automake libtool" makedepends="ncurses-dev autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/hunspell/hunspell/archive/v$pkgver.tar.gz" source="$pkgname-$pkgver.tar.gz::https://github.com/hunspell/hunspell/archive/v$pkgver.tar.gz"
prepare() { prepare() {
cd "$builddir"
default_prepare default_prepare
autoreconf -vif autoreconf -vif
} }
build() { build() {
cd "$builddir"
LIBS="-ltinfo" ./configure \ LIBS="-ltinfo" ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -29,12 +28,10 @@ build() { ...@@ -29,12 +28,10 @@ build() {
} }
check() { check() {
cd "$builddir"
make check make check
} }
package() { package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install make -j1 DESTDIR="$pkgdir" install
} }
......
...@@ -17,25 +17,17 @@ subpackages="$pkgname-dev $pkgname-doc" ...@@ -17,25 +17,17 @@ subpackages="$pkgname-dev $pkgname-doc"
source="https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${_realver}.orig.tar.gz" source="https://launchpad.net/ubuntu/+archive/primary/+files/${pkgname}_${_realver}.orig.tar.gz"
builddir="$srcdir/$pkgname-$_realver" builddir="$srcdir/$pkgname-$_realver"
prepare() {
cd "$builddir"
default_prepare
mkdir -p "$builddir"/build
}
build() { build() {
cd "$builddir"/build
cmake -DCMAKE_INSTALL_PREFIX=/usr \ cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
-DUSE_QT5=ON \ -DUSE_QT5=ON \
"$builddir" -Bbuild
make make -C build
} }
package() { package() {
cd "$builddir"/build make DESTDIR="$pkgdir" -C build install
make DESTDIR="$pkgdir" install
} }
sha512sums="dfaba59cedd320e6a3b5a9c0a5e13fb9e0952224e39cdd6ee3b32b03d95ac850a533e2a73835a7c0ead93b2283b9c235472bacb84e3d761ebe9e9398345314a9 libdbusmenu-qt_0.9.3+16.04.20160218.orig.tar.gz" sha512sums="dfaba59cedd320e6a3b5a9c0a5e13fb9e0952224e39cdd6ee3b32b03d95ac850a533e2a73835a7c0ead93b2283b9c235472bacb84e3d761ebe9e9398345314a9 libdbusmenu-qt_0.9.3+16.04.20160218.orig.tar.gz"
...@@ -8,18 +8,16 @@ url="http://libdmtx.sourceforge.net/" ...@@ -8,18 +8,16 @@ url="http://libdmtx.sourceforge.net/"
arch="all" arch="all"
license="BSD-2-Clause" license="BSD-2-Clause"
depends="" depends=""
makedepends="" makedepends="autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc" subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/dmtx/$pkgname/archive/v$pkgver.tar.gz" source="$pkgname-$pkgver.tar.gz::https://github.com/dmtx/$pkgname/archive/v$pkgver.tar.gz"
prepare() { prepare() {
cd "$builddir"
default_prepare default_prepare
./autogen.sh ./autogen.sh
} }
build() { build() {
cd "$builddir"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -32,13 +30,11 @@ build() { ...@@ -32,13 +30,11 @@ build() {
} }
check() { check() {
cd "$builddir"
make CFLAGS="-std=c99" check make CFLAGS="-std=c99" check
test/simple_test/simple_test test/simple_test/simple_test
} }
package() { package() {
cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
} }
......
...@@ -8,19 +8,18 @@ url="https://fukuchi.org/works/qrencode/index.html" ...@@ -8,19 +8,18 @@ url="https://fukuchi.org/works/qrencode/index.html"
arch="all" arch="all"
options="!check" # No test suite. options="!check" # No test suite.
license="LGPL-2.1+" license="LGPL-2.1+"
depends=""
makedepends="libpng-dev libtool" makedepends="libpng-dev libtool"
subpackages="$pkgname-dev $pkgname-doc" subpackages="$pkgname-dev $pkgname-doc"
source="https://fukuchi.org/works/qrencode/qrencode-$pkgver.tar.bz2" source="https://fukuchi.org/works/qrencode/qrencode-$pkgver.tar.bz2"
builddir="$srcdir/qrencode-$pkgver" builddir="$srcdir/qrencode-$pkgver"
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 \
...@@ -33,7 +32,6 @@ build() { ...@@ -33,7 +32,6 @@ build() {
} }
package() { package() {
cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
} }
......
...@@ -16,12 +16,10 @@ source="ftp://ftp.altlinux.org/pub/people/ldv/utempter/$pkgname-$pkgver.tar.bz2 ...@@ -16,12 +16,10 @@ source="ftp://ftp.altlinux.org/pub/people/ldv/utempter/$pkgname-$pkgver.tar.bz2
" "
build() { build() {
cd "$builddir"
make LDLIBS="-lutmps -lskarnet" make LDLIBS="-lutmps -lskarnet"
} }
package() { package() {
cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
# we need to be setuid, not setgid # we need to be setuid, not setgid
chmod 4711 "$pkgdir"/usr/lib/utempter/utempter chmod 4711 "$pkgdir"/usr/lib/utempter/utempter
......
...@@ -14,7 +14,6 @@ source="https://www.X.Org/releases/individual/lib/libXScrnSaver-$pkgver.tar.bz2" ...@@ -14,7 +14,6 @@ source="https://www.X.Org/releases/individual/lib/libXScrnSaver-$pkgver.tar.bz2"
builddir="$srcdir"/libXScrnSaver-$pkgver builddir="$srcdir"/libXScrnSaver-$pkgver
build() { build() {
cd "$builddir"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -28,12 +27,10 @@ build() { ...@@ -28,12 +27,10 @@ build() {
} }
check() { check() {
cd "$builddir"
make check make check
} }
package() { package() {
cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
} }
......
Supports Markdown
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