# Maintainer: Michael DeGuzis # Contributor: Mark Weiman # Contributor: Johannes Dewender arch at JonnyJD dot net # Contributor: Tony Lambiris pkgname=apt-git pkgver=1.7.0_alpha0.r25.ge2e2c8c72 pkgrel=1 pkgdesc="Command-line package manager used on Debian-based systems (git-latest)" arch=('i686' 'x86_64') url="http://packages.debian.org" license=('GPL2') depends=('gnupg' 'curl' 'xz') makedepends=('cmake' 'dpkg' 'docbook-xsl' 'doxygen' 'po4a' 'gtest' 'w3m') checkdepends=() optdepends=() provides=('libapt-inst' 'libapt-pkg' 'libapt-pkg-dev' "apt-utils") conflicts=(apt) replaces=(apt) backup=() options=() install= changelog= source=("$pkgname::git+https://salsa.debian.org/apt-team/apt.git") sha256sums=('SKIP') pkgver() { cd "$pkgname" git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "$srcdir/$pkgname" # docbook xsl is stored with the version on Arch DOCBOOK_XSL_VER=`ls -d /usr/share/xml/docbook/xsl-stylesheets-* | xargs basename` cmake \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DCMAKE_INSTALL_LIBDIR="lib" \ -DDOCBOOK_XSL="/usr/share/xml/docbook/${DOCBOOK_XSL_VER}" \ . sed -i -e "s|stylesheet/docbook-xsl|$DOCBOOK_XSL_VER|" doc/*.xsl sed -i -e "s|stylesheet/nwalsh|$DOCBOOK_XSL_VER|" doc/*.xsl make -j $(nproc) all } package() { cd "$srcdir/$pkgname" make DESTDIR="${pkgdir}" install } # vim:set ts=2 sw=2 et: