Skip to content

Commit

Permalink
🚿 CHORE: Update contact info
Browse files Browse the repository at this point in the history
- Update contact info to point to new discussions board
- Bump package release, pkgrel() to reflect changes
- To avoid package conflicts ensure /usr/lib/node_modules/root is not being installed
- Format document
- Bump.SRCINFO to reflect changes

On branch main
- Changes to be committed:
  - modified:   .SRCINFO
  - modified:   PKGBUILD
  • Loading branch information
rossclarkartist committed Aug 30, 2022
1 parent b26a061 commit fdbf89d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = add-gitignore
pkgdesc = Interactive CLI tool to generate .gitignore files.
pkgver = 1.1.1
pkgrel = 2
pkgrel = 3
url = https://github.com/TejasQ/add-gitignore
arch = any
license = MIT
Expand Down
28 changes: 13 additions & 15 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
# [ToDo]: Add files: Tooling
# [FixMe]: Namcap warnings and errors

# Maintainer: Ross Clark <archiv8@artisteducator.com>
# Contributor: Ross Clark <archiv8@artisteducator.com>

# Maintainer: Ross Clark <https://github.com/orgs/Archiv8/add-gitignore/discussions>
# Contributor: Ross Clark <https://github.com/orgs/Archiv8/add-gitignore/discussions>

# pkgbase=
pkgname="add-gitignore"
pkgver=1.1.1
pkgrel=3
pkgrel=4
# epoch=
pkgdesc="Interactive CLI tool to generate .gitignore files."
arch=("any")
Expand All @@ -26,7 +25,7 @@ license=("MIT")
depends=(
# Official Arch Linux repositories
"nodejs"
)
)
# optdepends=()
makedepends=(
# Official Arch Linux repositories
Expand All @@ -41,13 +40,13 @@ makedepends=(
# install=
# changelog="CHANGELOG.md"
source=(
"https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz"
# "CC-by-SA-v4.md"
# "CHANGELOG.md"
# "ISSUES.md"
# "LICENSE.md"
# "MIT.md"
# "README.md"
"https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz"
# "CC-by-SA-v4.md"
# "CHANGELOG.md"
# "ISSUES.md"
# "LICENSE.md"
# "MIT.md"
# "README.md"
)
noextract=("$pkgname-$pkgver.tgz")
# validpgpkeys=()
Expand All @@ -71,7 +70,7 @@ package() {
printf "\e[1;32m==>\e[0m \e[38;5;248mCorrecting possible ownership issues\e[0m\n"
while IFS= read -r fsitem; do
chown -h root:root "$fsitem"
done < <(find "$pkgdir" -not -group root -not -user root)
done < <(find "$pkgdir" -not -group root -not -user root)

# Non-deterministic race in npm gives 777 permissions to random directories.
# See https://github.com/npm/npm/issues/9359 for details.
Expand All @@ -82,15 +81,14 @@ package() {
printf "\e[1;32m==>\e[0m \e[38;5;248mRemoving references to \$pkgdir\e[0m\n"
find "$pkgdir" -type f -name package.json -print0 | xargs -0 sed -i "/_where/d"


# Remove references to $srcdir
printf "\e[1;32m==>\e[0m \e[38;5;248mRemoving references to \$srcdir \e[0m\n"
local tmppackage="$(mktemp)"
local pkgjson="$pkgdir/usr/lib/node_modules/$pkgname/package.json"
jq '.|=with_entries(select(.key|test("_.+")|not))' "$pkgjson" > "$tmppackage"
mv "$tmppackage" "$pkgjson"
chmod 644 "$pkgjson"
rm -rf "$pkgdir/usr/lib/node_modules/root"
rm -rf "$pkgdir/usr/lib/node_modules/root"
# Install license
# install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
# ln -s ../../../lib/node_modules/eslint/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
Expand Down

0 comments on commit fdbf89d

Please sign in to comment.