Skip to content

Commit 12f51c8

Browse files
🎉 INIT: Initialize repository
On branch main - Changes to be committed: - new file: .SRCINFO - new file: PKGBUILD
0 parents  commit 12f51c8

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.SRCINFO

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
pkgbase = python-polib
2+
pkgdesc = A library to manipulate gettext files
3+
pkgver = 1.1.1
4+
pkgrel = 1
5+
url = https://pypi.python.org/pypi/polib
6+
arch = any
7+
license = MIT
8+
makedepends = python-setuptools
9+
depends = python
10+
source = python-polib-1.1.1.tar.gz::https://pypi.io/packages/source/p/polib/polib-1.1.1.tar.gz
11+
sha256sums = e02c355ae5e054912e3b0d16febc56510eff7e49d60bf22aecb463bd2f2a2dfa
12+
13+
pkgname = python-polib

PKGBUILD

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
3+
# Disable various shellcheck rules that produce false positives in this file.
4+
# Repository rules should be added to the .shellcheckrc file located in the
5+
# repository root directory, see https://github.com/koalaman/shellcheck/wiki
6+
# and https://archiv8.github.io for further information.
7+
# shellcheck disable=SC2034,SC2154
8+
# ToDo: Add files: User documentation
9+
# ToDo: Add files: Tooling
10+
# FixMe: Namcap warnings and errors
11+
12+
# Maintainer: twa022 <twa022 at gmail dot com>
13+
# Contributor: Esteban V. Carnevale <[email protected]>
14+
# Contributor: Ross Clark <[email protected]>
15+
16+
_pkgname=polib
17+
18+
19+
pkgbase=python-polib
20+
pkgname=("python-polib")
21+
22+
pkgver=1.1.1
23+
pkgrel=1
24+
pkgdesc="A library to manipulate gettext files"
25+
url="https://pypi.python.org/pypi/polib"
26+
arch=("any")
27+
license=("MIT")
28+
depends=("python")
29+
makedepends=("python-setuptools")
30+
source=("${pkgbase}-${pkgver}.tar.gz::https://pypi.io/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
31+
sha256sums=("e02c355ae5e054912e3b0d16febc56510eff7e49d60bf22aecb463bd2f2a2dfa")
32+
33+
build() {
34+
cd "${srcdir}/${_pkgname}-${pkgver}"
35+
python setup.py build
36+
}
37+
38+
package() {
39+
cd "${srcdir}/${_pkgname}-${pkgver}"
40+
python setup.py install --root="${pkgdir}" --skip-build --optimize=1
41+
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
42+
}

0 commit comments

Comments
 (0)