Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tree: modernize packages maintained by Leo #7935

Closed
wants to merge 14 commits into from
1 change: 0 additions & 1 deletion testing/fcount/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ url="http://git.z3bra.org/fcount/log.html"
arch="all"
license="WTFPL"
source="http://dl.z3bra.org/releases/${pkgname}-${pkgver}.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

build() {
make
Expand Down
1 change: 0 additions & 1 deletion testing/fd/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ subpackages="
$pkgname-zsh-compltion:zshcomp:noarch
$pkgname-fish-completion:fishcomp:noarch"
source="$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/fd/archive/v${pkgver}.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
cargo build --release
Expand Down
1 change: 0 additions & 1 deletion testing/font-iosevka-nerd/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ source="$pkgname-$pkgver.tar.xz::https://gitlab.com/devopsdeluxe/nerd-fonts-aur/
builddir="$srcdir/NerdFonts"

package() {
cd "$builddir"
find . -iname 'Iosevka*.ttf' | while read -r ttf; do
install -Dm644 "$ttf" "$pkgdir"/usr/share/fonts/TTF/"$ttf"
done
Expand Down
1 change: 0 additions & 1 deletion testing/font-material-design-icons/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ source="https://github.com/google/material-design-icons/releases/download/${pkgv
builddir="$srcdir/material-design-icons-${pkgver}"

package() {
cd "$builddir"
install -Dm644 iconfont/MaterialIcons-Regular.ttf "$pkgdir"/usr/share/fonts/TTF/MaterialIcons-Regular.ttf
}

Expand Down
3 changes: 0 additions & 3 deletions testing/gotop/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,15 @@ prepare() {
}

build() {
cd "$builddir"
GOPATH="$srcdir" go build -v -o bin/$pkgname .
}

check() {
cd "$builddir"
# No testsuite is provided
./bin/$pkgname --help
}

package() {
cd "$builddir"
install -Dm755 bin/$pkgname "$pkgdir"/usr/bin/$pkgname
}
sha512sums="012cc627fa7013409f3775d5bf2528e25e275fc285fea7ae93a1afec33474c923cc6cd9accb24fce479ab229c98d6438cc9f5eb7dea37f72c1905516d5fdbf6e gotop-3.0.0.tar.gz"
3 changes: 0 additions & 3 deletions testing/maim/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ makedepends="
slop-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/naelstrof/maim/archive/v${pkgver}.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
cd "$builddir"
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
Expand All @@ -37,7 +35,6 @@ build() {
}

package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}

Expand Down
2 changes: 0 additions & 2 deletions testing/qimgv/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ license="GPL-3.0-or-later"
depends="hicolor-icon-theme"
makedepends="qt5-qtbase-dev cmake"
source="$pkgname-$pkgver.tar.gz::https://github.com/easymodo/qimgv/archive/v${pkgver}.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
cd "$builddir"
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
cmake --build .
Expand Down
3 changes: 1 addition & 2 deletions testing/ranger/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ranger/ranger/archive/v${pkgver}.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
python3 setup.py build
Expand All @@ -23,7 +22,7 @@ check() {
}

package() {
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1

install -Dm644 doc/ranger.1 "$pkgdir"/usr/share/man/man1/ranger.1
install -Dm644 doc/rifle.1 "$pkgdir"/usr/share/man/man1/rifle.1
Expand Down
3 changes: 0 additions & 3 deletions testing/slop/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ makedepends="
libxrender-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/naelstrof/slop/archive/v${pkgver}.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
cd "$builddir"
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
Expand All @@ -33,7 +31,6 @@ build() {
}

package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}

Expand Down
1 change: 0 additions & 1 deletion testing/snooze/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ arch="all"
license="CC0-1.0"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/leahneukirchen/snooze/archive/v${pkgver}.tar.gz"
builddir="$srcdir/${pkgname}-${pkgver}"

build() {
make
Expand Down
2 changes: 1 addition & 1 deletion testing/totem-pl-parser/APKBUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=totem-pl-parser
pkgver=3.26.3
pkgrel=0
Expand Down
1 change: 0 additions & 1 deletion testing/wifish/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ license="WTFPL"
depends="wpa_supplicant gawk dialog"
checkdepends="gawk checkbashisms"
source="$pkgname-$pkgver.tar.gz::https://github.com/bougyman/wifish/archive/${pkgver}.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

package() {
install -Dm777 $pkgname "$pkgdir"/usr/bin/$pkgname
Expand Down
2 changes: 0 additions & 2 deletions testing/wmutils/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/wmutils/core/archive/v${pkgv
builddir="$srcdir/core-${pkgver}"

build() {
cd "$builddir"
make
}

package() {
cd "$builddir"
make DESTDIR="$pkgdir" PREFIX=/usr MANPREFIX=/usr/share/man install
}

Expand Down
3 changes: 0 additions & 3 deletions testing/xdo/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@ license="BSD-2-Clause"
makedepends="libxcb-dev xcb-util-wm-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/baskerville/xdo/archive/${pkgver}.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
cd "$builddir"
sed -i 's/^\(CFLAGS *+=\)/override \1/' Makefile
make
}

package() {
cd "$builddir"
make DESTDIR="$pkgdir" PREFIX=/usr install
}

Expand Down