PKGBUILD.in 699 Bytes
Newer Older
1 2
#!/bin/sh

3
version="$1"
4 5 6 7 8 9 10 11
outfile=${0%.in}

cat << eof > "${outfile}"
pkgname=cdist
pkgver=$version
pkgrel=1
pkgdesc='A Usable Configuration Management System"'
arch=('any')
12
url='https://www.cdi.st/'
13
license=('GPL3')
14
depends=('python>=3.2.0')
15 16 17
source=("http://pypi.python.org/packages/source/c/cdist/cdist-\${pkgver}.tar.gz")

package() {
18 19
    cd cdist-\${pkgver}
    python3 setup.py build install --root="\${pkgdir}"
20 21
    find "\$pkgdir" -type d -exec chmod 0755 {} \;
    find "\$pkgdir" -type f -exec chmod a+r {} \;
22 23
}
eof
24 25

makepkg -g >> "${outfile}"
26 27 28 29

# Fix this issue:
# error: failed to upload cdist-3.1.6-1.src.tar.gz: Error - all files must have permissions of 644 or 755.
chmod a+r "${outfile}"