diff options
author | Frederik “Freso” S. Olesen | 2023-12-15 11:17:51 +0100 |
---|---|---|
committer | Frederik “Freso” S. Olesen | 2023-12-15 11:30:29 +0100 |
commit | f8c8cfab9b600fc1e0badbbd3cb4d94f46492652 (patch) | |
tree | 8cc2841d5ef1c96ce668c65839a3c37cd686c3e2 | |
parent | 464723bb4435c44bb035e8df2efd9eb2eee5491e (diff) | |
download | aur-f8c8cfab9b600fc1e0badbbd3cb4d94f46492652.tar.gz |
Fix up file permissions
Adding `chmod` and `find` to $makedepends even if they’re not strictly
needed to be added there, due to being part of the core set of packages.
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 10 insertions, 3 deletions
@@ -1,13 +1,15 @@ pkgbase = stavekontrolden pkgdesc = Stavekontrolden Danish dictionaries; for use with nuspell/hunspell, hyphen, libmythes, LibreOffice, and OpenOffice pkgver = 2.7.273 - pkgrel = 1 + pkgrel = 2 url = https://stavekontrolden.dk/ arch = any license = GPL2 license = LGPL2.1 license = MPL makedepends = libarchive + makedepends = coreutils + makedepends = findutils optdepends = hunspell: the spell checking libraries and apps optdepends = hyphen: for use of hyphenation rules optdepends = libmythes: for use of thesaurus dictionary @@ -4,7 +4,7 @@ # Contributor: Jamie Magee <jamie dot magee at gmail dot com> pkgname=stavekontrolden pkgver=2.7.273 -pkgrel=1 +pkgrel=2 pkgdesc="Stavekontrolden Danish dictionaries; for use with nuspell/hunspell, hyphen, libmythes, LibreOffice, and OpenOffice" arch=('any') url='https://stavekontrolden.dk/' @@ -13,7 +13,7 @@ optdepends=( 'hunspell: the spell checking libraries and apps' 'hyphen: for use of hyphenation rules' 'libmythes: for use of thesaurus dictionary') -makedepends=('libarchive') +makedepends=('libarchive' 'coreutils' 'findutils') provides=('libreoffice-extension-da_dk' 'openoffice-extension-da_dk' 'hunspell-da' 'hyphen-da' 'mythes-da') conflicts=("${provides[@]}") source=("https://stavekontrolden.dk/dictionaries/da_DK/da_DK-$pkgver.oxt") @@ -65,4 +65,9 @@ package() { install -dm755 "${pkgdir}"/usr/share/licenses/$pkgname ln -s ../$_link_dir/README_da_DK.txt "${pkgdir}"/usr/share/licenses/$pkgname/README_da_DK.txt ln -s ../$_link_dir/HYPH_da_DK_README.txt "${pkgdir}"/usr/share/licenses/$pkgname/HYPH_da_DK_README.txt + + # Remove world writable bits + chmod --recursive go-w "${pkgdir}" + # Remove executable bits + find "${pkgdir}"/ -type f -exec chmod -x {} + } |