diff options
author | caltlgin | 2020-10-08 15:45:20 +1300 |
---|---|---|
committer | caltlgin | 2020-10-08 15:45:20 +1300 |
commit | 96118a834eedbc82637c73bc79bd716c32ac0bb9 (patch) | |
tree | 6622b99c57e1d0ce16995bba96a1004998fafd8b | |
download | aur-96118a834eedbc82637c73bc79bd716c32ac0bb9.tar.gz |
Add to AUR
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..477b11611785 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = inspektor-git + pkgdesc = View metadata information on files + pkgver = 1.0.32.r1.g7e899ee + pkgrel = 1 + url = https://github.com/hezral/inspektor + arch = any + license = GPL3 + makedepends = git + makedepends = python-setuptools + depends = attr + depends = gtk3 + depends = perl-image-exiftool + depends = python + provides = inspektor + conflicts = inspektor + source = inspektor::git+https://github.com/hezral/inspektor.git + sha256sums = SKIP + +pkgname = inspektor-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..523add8bacc5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> + +_pkgname='inspektor' +pkgname="${_pkgname}-git" +pkgver=1.0.32.r1.g7e899ee +pkgrel=1 +pkgdesc='View metadata information on files' +arch=('any') +url='https://github.com/hezral/inspektor' +license=('GPL3') +depends=('attr' 'gtk3' 'perl-image-exiftool' 'python') +makedepends=('git' 'python-setuptools') +provides=("${_pkgname}") +conflicts=("${_pkgname}") +source=("${_pkgname}::git+${url}.git") +sha256sums=('SKIP') + +pkgver() { + git -C "${_pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${_pkgname}" + python setup.py build +} + +package() { + cd "${_pkgname}" + python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" 'README.md' +} + +# vim: ts=2 sw=2 et: |