Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Commits
560b42e8
Unverified
Commit
560b42e8
authored
5 years ago
by
prspkt
Browse files
Options
Downloads
Patches
Plain Diff
community/py-polib: drop python2
* Run test suite. Signed-off-by:
prspkt
<
prspkt@protonmail.com
>
parent
5841fcdc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
community/py3-polib/APKBUILD
+9
-30
9 additions, 30 deletions
community/py3-polib/APKBUILD
with
9 additions
and
30 deletions
community/py-polib/APKBUILD
→
community/py
3
-polib/APKBUILD
+
9
−
30
View file @
560b42e8
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname
=
py-polib
pkgname
=
py
3
-polib
_pkgname
=
polib
pkgver
=
1.1.0
pkgrel
=
1
pkgrel
=
2
pkgdesc
=
"A library to manipulate gettext files"
url
=
"http://polib.readthedocs.org/en/latest/index.html"
arch
=
"noarch"
license
=
"MIT"
make
depends
=
"python
2-dev python3-dev py-setuptools
"
subpackages
=
"py3-
${
pkgname
/py-/
}
:_py3 py2-
${
pkgname
/py-/
}
:_py2
"
depends
=
"python
3
"
makedepends
=
"py3-setuptools
"
source
=
"https://files.pythonhosted.org/packages/source/
${
_pkgname
:0:1
}
/
$_pkgname
/
$_pkgname
-
$pkgver
.tar.gz"
builddir
=
"
$srcdir
/
$_pkgname
-
$pkgver
"
replaces
=
py-polib
# Backwards compatibility
provides
=
py-polib
=
$pkgver
-r
$pkgrel
# Backwards compatibility
build
()
{
cd
"
$builddir
"
python2 setup.py build
python3 setup.py build
}
check
()
{
cd
"
$builddir
"
python2 setup.py check
python3 setup.py check
python3 tests/tests.py
}
package
()
{
mkdir
-p
"
$pkgdir
"
}
_py
()
{
local
python
=
$1
pkgdesc
=
"
$pkgdesc
(for
$python
)"
depends
=
"
$python
libmagic"
install_if
=
"
$pkgname
=
$pkgver
-r
$pkgrel
$python
"
cd
"
$builddir
"
$python
setup.py
install
--prefix
=
/usr
--root
=
"
$subpkgdir
"
}
_py2
()
{
replaces
=
"
$pkgname
"
_py python2
}
_py3
()
{
_py python3
python3 setup.py
install
--prefix
=
/usr
--root
=
"
$pkgdir
"
}
sha512sums
=
"74681585b4d7252e107acd7d73f49f7e91c90adcd180722d39d35c40ec158434798af0124a16788cf564c73b84f52a040aefeb58355a1a3cd85848c3f6a5e67f polib-1.1.0.tar.gz"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment