blob: 6ba9c6286d50b36ca0d6d981136493a640b9e2ae (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: RubenKelevra <cyrond@gmail.com>
# Contributor: jerry73204 <jerry73204 at gmail dot com>
pkgname=ogr2osm-git
pkgver=r371.f7d2f33
pkgrel=2
epoch=2
pkgdesc='A tool for converting ogr-readable files like shapefiles into .osm data'
arch=('any')
url='https://github.com/roelderickx/ogr2osm'
license=('MIT')
depends=(
'python>=3.11'
gdal
'python-gdal>=3.0.0'
'python-lxml>=4.3.0'
python-protobuf
protobuf
)
makedepends=(
git
python-build
python-installer
python-wheel
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(
"ogr2osm::git+$url"
'https://raw.githubusercontent.com/roelderickx/ogr2osm/main/LICENSE'
)
b2sums=('SKIP'
'5003f6697eb36d2709c69ad8d1c81ae258a94e6fa5319075198caf3b7fe84a0671b9c12f0848c6dd03a520371d43f444232696feb28379465dabf12463cd09b2')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/${pkgname%-git}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 -t "$pkgdir/usr/share/licenses/$pkgname/LICENSE" LICENSE
}
|