summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd53a36ba4f6a8c5d29a1acfb8a8fb7efb15b9f9 (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
# Maintainer: Morteza NourelahiAlamdari <m@0t1.me>
# Contributer: Caltlgin Stsodaat <contact@fossdaily.xyz>

_pkgname='oyaml'
pkgname="python-oyaml"
pkgver="1.0"
pkgrel=3
pkgdesc="Ordered YAML: drop-in replacement for PyYAML which preserves dict ordering"
arch=("any")
url="https://github.com/wimglenn/${_pkgname}"
source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=("9b49953ab13e1db45126b82264941a4b1630d2bf5c3c56c8b9d12bff2708dac1")
license=("MIT")
depends=("python-yaml")
makedepends=('python-setuptools')

build() {
  cd "${_pkgname}-${pkgver}"
  python setup.py build
}

package() {
  cd "${_pkgname}-${pkgver}"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dvm644 'README.rst' -t "${pkgdir}/usr/share/doc/${pkgname}"
  install -Dvm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname}"
}