diff options
author | Don Harper | 2022-04-07 21:22:40 -0500 |
---|---|---|
committer | Don Harper | 2022-04-07 21:22:40 -0500 |
commit | 0862785cbe0d094d410a7a5eef385c95740ef07a (patch) | |
tree | f65b1cc6fc0c7396d13957ae3e34a99aaae8a9fa /PKGBUILD | |
download | aur-0862785cbe0d094d410a7a5eef385c95740ef07a.tar.gz |
First commit | git version of sigal, a simple static gallery generator
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4c051c071e68 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Don Harper < duck at duckland dot org> +_pkgname_base=sigal +pkgname=$_pkgname_base-git + +pkgver=r1280.86279cf +pkgrel=1 +pkgdesc="Simple Static Gallery Generator" +arch=("any") +url="https://github.com/saimn/sigal" +license=('GPL') +depends=( 'ffmpeg' 'python-blinker' 'python-click' 'python-jinja' 'python-markdown' 'python-natsort' 'python-pillow' 'python-pilkit') +optdepends=( 'python-boto: upload to S3 plugin' 'python-brotli: compress assets plugin' 'python-cryptography: encrypt plugin' 'python-feedgenerator: feed plugin' 'python-zopfli: compress assets plugin') + +provides=('sigal') +conflicts=('sigal') +makedepends=('git') + +source=($pkgname::'git+https://github.com/saimn/sigal') + +md5sums=('SKIP') +sha256sums=('SKIP') + +pkgver() { + cd "$srcdir/${pkgname}" + + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/${pkgname}" + python setup.py build + make -C docs man PYTHONPATH="${PWD}" +} + +package() { + cd "$srcdir/${pkgname}" + python setup.py install --skip-build \ + --optimize=1 \ + --prefix=/usr \ + --root="${pkgdir}" +} |