mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-14 18:36:18 +02:00
Compare commits
1 Commits
ed82f4f183
...
feat/licen
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7a64d33b88 |
@@ -155,7 +155,7 @@ if (( ${#needsversioning[*]} )); then
|
|||||||
if [[ ! -f "${file}" ]]; then
|
if [[ ! -f "${file}" ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
if ! git ls-files --error-unmatch "$file" >/dev/null; then
|
if ! git ls-files --error-unmatch "$file"; then
|
||||||
die "%s is not under version control" "$file"
|
die "%s is not under version control" "$file"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
@@ -94,19 +94,19 @@ pkgctl_license_check() {
|
|||||||
pushd "${path}" >/dev/null
|
pushd "${path}" >/dev/null
|
||||||
|
|
||||||
if [[ ! -f PKGBUILD ]]; then
|
if [[ ! -f PKGBUILD ]]; then
|
||||||
msg_error "${BOLD}${pkgbase}:${ALL_OFF} no PKGBUILD found"
|
msg_error "${BOLD}${path}:${ALL_OFF} no PKGBUILD found"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# reset common PKGBUILD variables
|
if [[ ! -f .SRCINFO ]]; then
|
||||||
unset pkgbase
|
msg_error "${BOLD}${path}:${ALL_OFF} no .SRCINFO found"
|
||||||
|
return 1
|
||||||
# shellcheck source=contrib/makepkg/PKGBUILD.proto
|
fi
|
||||||
if ! . ./PKGBUILD; then
|
|
||||||
msg_error "${BOLD}${pkgbase}:${ALL_OFF} failed to source PKGBUILD"
|
if ! pkgbase=$(grep --max-count=1 --extended-regexp "pkgbase = (.+)" .SRCINFO | awk '{print $3}'); then
|
||||||
|
msg_error "${BOLD}${path}:${ALL_OFF} pkgbase not found in .SRCINFO"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
pkgbase=${pkgbase:-$pkgname}
|
|
||||||
|
|
||||||
if [[ ! -e LICENSE ]]; then
|
if [[ ! -e LICENSE ]]; then
|
||||||
msg_error "${BOLD}${pkgbase}:${ALL_OFF} is missing the LICENSE file"
|
msg_error "${BOLD}${pkgbase}:${ALL_OFF} is missing the LICENSE file"
|
||||||
|
@@ -191,9 +191,7 @@ path = [
|
|||||||
".nvchecker.toml",
|
".nvchecker.toml",
|
||||||
"*.install",
|
"*.install",
|
||||||
"*.sysusers",
|
"*.sysusers",
|
||||||
"*sysusers.conf",
|
|
||||||
"*.tmpfiles",
|
"*.tmpfiles",
|
||||||
"*tmpfiles.conf",
|
|
||||||
"*.logrotate",
|
"*.logrotate",
|
||||||
"*.pam",
|
"*.pam",
|
||||||
"*.service",
|
"*.service",
|
||||||
|
@@ -1,4 +0,0 @@
|
|||||||
install:
|
|
||||||
rm -rf src/devtools-local
|
|
||||||
makepkg -f
|
|
||||||
sudo pacman --noconfirm -U $(makepkg --packagelist | head -1)
|
|
@@ -1,67 +0,0 @@
|
|||||||
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
||||||
# Contributor: Pierre Schmitz <pierre@archlinux.de>
|
|
||||||
|
|
||||||
pkgname=devtools
|
|
||||||
branch=master
|
|
||||||
pkgver=1.3.1.r4.g79c3162
|
|
||||||
pkgrel=1
|
|
||||||
pkgdesc='Tools for Arch Linux package maintainers'
|
|
||||||
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
|
|
||||||
|
|
||||||
bzr
|
|
||||||
git
|
|
||||||
mercurial
|
|
||||||
subversion
|
|
||||||
)
|
|
||||||
makedepends=(
|
|
||||||
asciidoc
|
|
||||||
shellcheck
|
|
||||||
)
|
|
||||||
optdepends=('btrfs-progs: btrfs support')
|
|
||||||
source=(devtools-local::"git+file://$PWD/../.git#branch=${branch}")
|
|
||||||
validpgpkeys=(
|
|
||||||
'4AA4767BBC9C4B1D18AE28B77F2D434B9741E8AC' # Pierre Schmitz <pierre@archlinux.org>
|
|
||||||
'86CFFCA918CF3AF47147588051E8B148A9999C34' # Evangelos Foutras <foutrelis@archlinux.org>
|
|
||||||
'8FC15A064950A99DD1BD14DD39E4B877E62EB915' # Sven-Hendrik Haase <svenstaro@archlinux.org>
|
|
||||||
'A2FF3A36AAA56654109064AB19802F8B0D70FC30' # Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
|
||||||
'B81B051F2D7FC867AAFF35A58DBD63B82072D77A' # Sébastien Luttringer <seblu@archlinux.org>
|
|
||||||
'6645B0A8C7005E78DB1D7864F99FFE0FEAE999BD' # Allan McRae (Developer) <allan@archlinux.org>
|
|
||||||
'E240B57E2C4630BA768E2F26FC1B547C8D8172C8' # Levente Polyak <anthraxx@archlinux.org>
|
|
||||||
)
|
|
||||||
sha256sums=('SKIP')
|
|
||||||
b2sums=('SKIP')
|
|
||||||
|
|
||||||
pkgver() {
|
|
||||||
cd ${pkgname}-local
|
|
||||||
git describe --long --tags | sed -E 's,^[^0-9]*,,;s,([^-]*-g),r\1,;s,-,.,g'
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
cd ${pkgname}-local
|
|
||||||
make BUILDTOOLVER="${epoch}:${pkgver}-${pkgrel}-${arch}" PREFIX=/usr
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
|
||||||
cd ${pkgname}-local
|
|
||||||
make PREFIX=/usr DESTDIR="${pkgdir}" install
|
|
||||||
}
|
|
||||||
|
|
||||||
# vim: ts=2 sw=2 et:
|
|
Reference in New Issue
Block a user