summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cc499985eefa702ade326666fe9b8aafd75eed11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: eomanis at web dot de

pkgname='inherit-acl'
_pkgverUpstream="0.1.3"
pkgver="${_pkgverUpstream//-/.}"
pkgrel=1
pkgdesc="Tool that applies to a path its parent directory's permissions and ACL"
arch=('any')
url='https://eomanis.duckdns.org/permshare/inherit-acl/'
license=('GPL3')
depends=('bash>=4.3' 'coreutils' 'sed' 'acl')
optdepends=('sudo: Sudo integration')
source=("https://eomanis.duckdns.org/permshare/inherit-acl/inherit-acl-${_pkgverUpstream}.tar.gz")
sha384sums=('905bdc59b7babd0a414683143777d54a830297310bbcfee6815d364bd3a679a75eb2b6241c1fa8bd4e031dc05d9bbd2f')

package() {
    local srcRootDir="${srcdir}/${pkgname}-${_pkgverUpstream}"
    
    # Place the main bash scripts into /usr/bin
    mkdir -p "${pkgdir}/usr/bin"
    cd "${pkgdir}/usr/bin"
    cp -t . "${srcRootDir}/inherit-acl"
    chmod u=rwx,go=rx "inherit-acl"
    cp -t . "${srcRootDir}/inherit-acl-run"
    chmod u=rwx,go=rx "inherit-acl-run"
}