blob: 74f772fd8231a7914a8cf2f7b19e11b7617624f4 (
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
36
|
# Contributor: Vianney le Clément de Saint-Marcq <code AT quartic·eu>
_pkgname=undocker
pkgname=${_pkgname}-git
pkgver=20220321.gb32c540
pkgrel=1
pkgdesc="Unpacks a Docker image"
arch=('any')
url="https://github.com/larsks/undocker/"
license=('GPL3')
depends=('python')
provides=('undocker')
conflicts=('undocker')
makedepends=('python-setuptools' 'git')
source=("git+https://github.com/larsks/${_pkgname}.git")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
_date=$(git show -s --format='%ci' | cut -d' ' -f1 | sed 's/-//g')
_hash=$(git show -s --format='%h')
echo "${_date}.g${_hash}"
}
build() {
cd "${_pkgname}"
python setup.py build
}
package() {
cd "${_pkgname}"
python setup.py install --root="$pkgdir" --optimize=1
}
# vim:set ts=2 sw=2 et:
|