summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e45de0cb9e1dcf080d4ee714b03daec04357604 (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
27
28
29
30
31
32
33
34
35
# Maintainer: trougnouf (Benoit Brummer) <trougnouf@gmail.com>
# Contributors: crocowhile

_name="pidng"
_NAME='PiDNG'
pkgname=python-${_name}-git
provides=("python-${_name}")
conflicts=("python-${_name}")
pkgver=20230726.66f3e16
pkgrel=1
pkgdesc="Create Adobe DNG RAW files using Python."
url="https://github.com/schoolpost/${_name}"
license=('MIT')
arch=('x86_64')
depends=('python-exifread' 'python-numpy')
makedepends=('python-setuptools')
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd ${srcdir}/${_name}
  git log -1 --format=%cd.%h --date=short|tr -d -
}

build() {
  cd ${srcdir}/${_name}
  python setup.py build
}

package() {
  cd ${srcdir}/${_name}
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}