diff options
author | Tpaefawzen | 2024-02-10 15:06:53 +0900 |
---|---|---|
committer | Tpaefawzen | 2024-02-10 15:06:53 +0900 |
commit | 25e15ab58a6a5e615aff88c8a077ac700e6f9105 (patch) | |
tree | 971c679ace6a015f706af2aee6e0d61389ff181f | |
parent | e2a27ba0994eff45b8350a9d25ac050a5b27616c (diff) | |
download | aur-misc-tools-git.tar.gz |
pkgrel 3: avoid confliction to base
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 21 insertions, 12 deletions
@@ -10,8 +10,6 @@ pkgbase = misc-tools-git provides = misc-tools conflicts = misc-tools source = misc-tools::git+https://github.com/ShellShoccar-jpn/misc-tools - source = rename-coreutils-util-linux.patch md5sums = SKIP - md5sums = 80df841296beaa5144df620f19e941f9 pkgname = misc-tools-git @@ -16,11 +16,9 @@ replaces=() backup=() options=() install= -source=("${pkgname%-git}::git+https://github.com/ShellShoccar-jpn/misc-tools" - 'rename-coreutils-util-linux.patch') +source=("${pkgname%-git}::git+https://github.com/ShellShoccar-jpn/misc-tools") noextract=() -md5sums=('SKIP' - '80df841296beaa5144df620f19e941f9') +md5sums=('SKIP') pkgver() { cd "$srcdir/${pkgname%-git}" @@ -31,16 +29,32 @@ pkgver() { prepare() { cd "$srcdir/${pkgname%-git}" - patch -p1 < "$srcdir"/rename-coreutils-util-linux.patch - chmod a+x misc-tools-* + + # Rename coreutils things + mv base64 misc-tools-base64 + mv mktemp misc-tools-mktemp + mv seq misc-tools-seq + mv truncate misc-tools-truncate + mv C_SRC/sleep.c C_SRC/misc-tools-sleep.c + + # Rename util-linux things + mv rev misc-tools-rev + + # We don't need these things + rm *.tmp *.old + + # TODO: fsed confliction against open-usp-tukubai } build() { cd "$srcdir/${pkgname%-git}" -# build C programs + + # build C programs cd C_SRC + chmod a+x MAKE.sh ./MAKE.sh + chmod a-x MAKE.sh } package() { @@ -50,9 +64,6 @@ package() { for x in ./* ./C_SRC/*; do [[ -f $x && -x $x ]] || continue - # should be updated when upstream repo's policy is changed - case "$x" in *MAKE.sh|*.tmp|*.old) continue;; esac - # finally install -Dm0755 -t "$pkgdir/usr/bin/" "$x" done |