Skip to content
Snippets Groups Projects
Commit 2cf385d0 authored by alice's avatar alice
Browse files

community/apt: new aport

https://salsa.debian.org/apt-team/apt
APT package management tool
parent d929767d
No related branches found
No related tags found
No related merge requests found
# Maintainer: psykose <alice@ayaya.dev>
pkgname=apt
pkgver=2.5.6
pkgrel=0
pkgdesc="APT package management tool"
url="https://salsa.debian.org/apt-team/apt"
arch="all"
license="GPL-2.0-or-later"
makedepends="
bzip2-dev
db-dev
cmake
dpkg-dev
eudev-dev
gettext-dev
gnutls-dev
libgcrypt-dev
lz4-dev
samurai
triehash
xxhash-dev
xz-dev
zlib-dev
zstd-dev
"
checkdepends="gtest-dev"
subpackages="
$pkgname-dev
$pkgname-libs
$pkgname-lang
$pkgname-bash-completion
"
source="https://salsa.debian.org/apt-team/apt/-/archive/$pkgver/apt-$pkgver.tar.bz2"
options="!check" # todo
build() {
cmake -B build -G Ninja -Wno-dev \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_DOC=OFF \
-DUSE_NLS=ON \
-DWITH_TESTS="$(want_check && echo ON || echo OFF)"
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
8b28d68e5066cc3b7c7d596284c2186b63a97a73ccee4dff585e7979168761874f7be793896d0d3a9b35a0c7b286d17f49f951ccbf8cd1632c4943e61640625f apt-2.5.6.tar.bz2
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment