mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-14 02:16:18 +02:00
Compare commits
10 Commits
v1.2.1
...
wip-testin
Author | SHA1 | Date | |
---|---|---|---|
![]() |
88b595433a | ||
![]() |
e1401ce41c | ||
![]() |
8612b41a20 | ||
![]() |
fbb661645b | ||
![]() |
f1dc2e18f7 | ||
![]() |
c9d821448b | ||
![]() |
a620250535 | ||
![]() |
27eebe383d | ||
![]() |
d6d416b653 | ||
![]() |
9ff63503b9 |
7
Makefile
7
Makefile
@@ -184,6 +184,13 @@ coverage: binprogs library conf completion man
|
|||||||
jq -r '. | ["Percent covered", .percent_covered], ["Covered lines", .covered_lines], ["Total lines", .total_lines], ["Percent low", .percent_low], ["Percent high", .percent_high] | @tsv' \
|
jq -r '. | ["Percent covered", .percent_covered], ["Covered lines", .covered_lines], ["Total lines", .total_lines], ["Percent low", .percent_low], ["Percent high", .percent_high] | @tsv' \
|
||||||
$(COVERAGE_DIR)/bats.*/coverage.json
|
$(COVERAGE_DIR)/bats.*/coverage.json
|
||||||
|
|
||||||
|
testinstall:
|
||||||
|
tar --transform 's,^,devtools/,' -cz -f test/devtools.tar.gz --exclude='test' --exclude='./build' .
|
||||||
|
mv test/devtools.tar.gz devtools.tar.gz
|
||||||
|
pkgctl build --repo extra-testing
|
||||||
|
rm devtools.tar.gz
|
||||||
|
sudo pacman -U $$(makepkg --packagelist)
|
||||||
|
|
||||||
check: $(BINPROGS_SRC) $(LIBRARY_SRC) contrib/completion/bash/devtools.in config/makepkg/x86_64.conf contrib/makepkg/PKGBUILD.proto
|
check: $(BINPROGS_SRC) $(LIBRARY_SRC) contrib/completion/bash/devtools.in config/makepkg/x86_64.conf contrib/makepkg/PKGBUILD.proto
|
||||||
shellcheck $^
|
shellcheck $^
|
||||||
|
|
||||||
|
64
PKGBUILD
Normal file
64
PKGBUILD
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
||||||
|
# Maintainer: Christian Heusel <gromit@archlinux.org>
|
||||||
|
# Contributor: Pierre Schmitz <pierre@archlinux.de>
|
||||||
|
|
||||||
|
pkgname=devtools-devel
|
||||||
|
_pkgname=devtools
|
||||||
|
epoch=1
|
||||||
|
pkgver=1.0.4.r10.g4a78f0e
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc='Tools for Arch Linux package maintainers (devel version)'
|
||||||
|
arch=('any')
|
||||||
|
license=('GPL')
|
||||||
|
url='https://gitlab.archlinux.org/archlinux/devtools'
|
||||||
|
depends=(
|
||||||
|
arch-install-scripts
|
||||||
|
awk
|
||||||
|
bash
|
||||||
|
binutils
|
||||||
|
coreutils
|
||||||
|
diffutils
|
||||||
|
fakeroot
|
||||||
|
findutils
|
||||||
|
grep
|
||||||
|
jq
|
||||||
|
openssh
|
||||||
|
parallel
|
||||||
|
rsync
|
||||||
|
sed
|
||||||
|
util-linux
|
||||||
|
|
||||||
|
breezy
|
||||||
|
git
|
||||||
|
mercurial
|
||||||
|
subversion
|
||||||
|
)
|
||||||
|
makedepends=(
|
||||||
|
asciidoctor
|
||||||
|
shellcheck
|
||||||
|
)
|
||||||
|
optdepends=('btrfs-progs: btrfs support')
|
||||||
|
|
||||||
|
conflicts=(devtools)
|
||||||
|
provides=(devtools)
|
||||||
|
source=(test/devtools.tar.gz)
|
||||||
|
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
b2sums=('SKIP')
|
||||||
|
|
||||||
|
pkgver() {
|
||||||
|
cd ${_pkgname}
|
||||||
|
git describe --long --abbrev=7 | sed 's/v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd ${_pkgname}
|
||||||
|
make BUILDTOOLVER="${epoch}:${pkgver}-${pkgrel}-${arch}" PREFIX=/usr
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd ${_pkgname}
|
||||||
|
make PREFIX=/usr DESTDIR="${pkgdir}" install
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim: ts=2 sw=2 et:
|
@@ -15,6 +15,8 @@ Description
|
|||||||
Build packages in clean chroot environment, offering various options
|
Build packages in clean chroot environment, offering various options
|
||||||
and functionalities to customize the package building process.
|
and functionalities to customize the package building process.
|
||||||
|
|
||||||
|
By default, chroot environments are located in '/var/lib/archbuild/'.
|
||||||
|
|
||||||
Build Options
|
Build Options
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
@@ -140,7 +140,7 @@ for _pkgname in "${pkgname[@]}"; do
|
|||||||
bsdtar tf "$TEMPDIR/$oldpkg" | sort > "$TEMPDIR/filelist-$_pkgname-old"
|
bsdtar tf "$TEMPDIR/$oldpkg" | sort > "$TEMPDIR/filelist-$_pkgname-old"
|
||||||
bsdtar tf "$pkgfile" | sort > "$TEMPDIR/filelist-$_pkgname"
|
bsdtar tf "$pkgfile" | sort > "$TEMPDIR/filelist-$_pkgname"
|
||||||
|
|
||||||
sdiff -s "$TEMPDIR/filelist-$_pkgname-old" "$TEMPDIR/filelist-$_pkgname"
|
diff --side-by-side --suppress-common-lines --width="$COLUMNS" --color=auto "$TEMPDIR/filelist-$_pkgname-old" "$TEMPDIR/filelist-$_pkgname"
|
||||||
|
|
||||||
find-libprovides "$TEMPDIR/$oldpkg" 2>/dev/null | sort > "$TEMPDIR/libraries-$_pkgname-old"
|
find-libprovides "$TEMPDIR/$oldpkg" 2>/dev/null | sort > "$TEMPDIR/libraries-$_pkgname-old"
|
||||||
find-libprovides "$pkgfile" 2>/dev/null | sort > "$TEMPDIR/libraries-$_pkgname"
|
find-libprovides "$pkgfile" 2>/dev/null | sort > "$TEMPDIR/libraries-$_pkgname"
|
||||||
|
@@ -165,7 +165,7 @@ pkgctl_aur_drop_from_repo() {
|
|||||||
warning 'Did not find %s in any repository, please delete manually' "${pkgbase}"
|
warning 'Did not find %s in any repository, please delete manually' "${pkgbase}"
|
||||||
else
|
else
|
||||||
msg2 " repo: ${pkgrepo}"
|
msg2 " repo: ${pkgrepo}"
|
||||||
pkgctl_db_remove "${pkgrepo}" "${pkgbase}"
|
pkgctl_db_remove --noconfirm "${pkgrepo}" "${pkgbase}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
|
@@ -63,7 +63,7 @@ pkgctl_auth_login() {
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
personal_access_token_url="https://${GITLAB_HOST}/-/profile/personal_access_tokens?name=pkgctl+token&scopes=api,write_repository"
|
personal_access_token_url="https://${GITLAB_HOST}/-/user_settings/personal_access_tokens?name=pkgctl+token&scopes=api,write_repository"
|
||||||
|
|
||||||
cat <<- _EOF_
|
cat <<- _EOF_
|
||||||
Logging into ${BOLD}${GITLAB_HOST}${ALL_OFF}
|
Logging into ${BOLD}${GITLAB_HOST}${ALL_OFF}
|
||||||
|
@@ -79,8 +79,8 @@ pkgctl_build_usage() {
|
|||||||
|
|
||||||
EXAMPLES
|
EXAMPLES
|
||||||
$ ${COMMAND}
|
$ ${COMMAND}
|
||||||
$ ${COMMAND} --rebuild --staging --message 'libyay 0.42 rebuild' libfoo libbar
|
$ ${COMMAND} --rebuild --staging --release --message 'libyay 0.42 rebuild' libfoo libbar
|
||||||
$ ${COMMAND} --pkgver 1.42 --release --db-update
|
$ ${COMMAND} --pkgver=1.42 --release --db-update
|
||||||
_EOF_
|
_EOF_
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -271,6 +271,7 @@ pkgctl_repo_configure() {
|
|||||||
if [[ -n $GPGKEY ]]; then
|
if [[ -n $GPGKEY ]]; then
|
||||||
git config commit.gpgsign true
|
git config commit.gpgsign true
|
||||||
git config user.signingKey "${GPGKEY}"
|
git config user.signingKey "${GPGKEY}"
|
||||||
|
git config gpg.format openpgp
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# set default git exclude
|
# set default git exclude
|
||||||
|
@@ -284,7 +284,7 @@ nvchecker_check_error() {
|
|||||||
local errors
|
local errors
|
||||||
|
|
||||||
if ! errors=$(jq --raw-output --exit-status \
|
if ! errors=$(jq --raw-output --exit-status \
|
||||||
'select(.level == "error") | "\(.event)" + if .error then ": \(.error)" else "" end' \
|
'select((.level == "error") and (.error != null)) | "\(.event)" + if .error then ": \(.error)" else "" end' \
|
||||||
<<< "${result}"); then
|
<<< "${result}"); then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
@@ -105,7 +105,7 @@ sync_chroot() {
|
|||||||
"Locking clean chroot [%s]" "$chrootdir/root"
|
"Locking clean chroot [%s]" "$chrootdir/root"
|
||||||
|
|
||||||
stat_busy "Synchronizing chroot copy [%s] -> [%s]" "$chrootdir/root" "$copy"
|
stat_busy "Synchronizing chroot copy [%s] -> [%s]" "$chrootdir/root" "$copy"
|
||||||
if is_btrfs "$chrootdir" && ! mountpoint -q "$copydir"; then
|
if is_btrfs "$chrootdir" && is_subvolume "$chrootdir/root" && ! mountpoint -q "$copydir"; then
|
||||||
subvolume_delete_recursive "$copydir" ||
|
subvolume_delete_recursive "$copydir" ||
|
||||||
die "Unable to delete subvolume %s" "$copydir"
|
die "Unable to delete subvolume %s" "$copydir"
|
||||||
btrfs subvolume snapshot "$chrootdir/root" "$copydir" >/dev/null ||
|
btrfs subvolume snapshot "$chrootdir/root" "$copydir" >/dev/null ||
|
||||||
|
Reference in New Issue
Block a user