36 lines
954 B
Bash
36 lines
954 B
Bash
|
# This is an example PKGBUILD file. Use this as a start to creating your own,
|
||
|
# and remove these comments. For more information, see 'man PKGBUILD'.
|
||
|
# NOTE: Please fill out the license field for your package! If it is unknown,
|
||
|
# then please put 'unknown'.
|
||
|
|
||
|
# Maintainer: Future Linux Team <future_linux@163.com>
|
||
|
pkgname=python-merge3
|
||
|
pkgver=0.0.14
|
||
|
pkgrel=1
|
||
|
pkgdesc="Python implementation of 3-way merge"
|
||
|
arch=('x86_64')
|
||
|
url="https://github.com/breezy-team/merge3"
|
||
|
license=('GPL2')
|
||
|
depends=('python')
|
||
|
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
|
||
|
source=(git+https://github.com/breezy-team/merge3.git#tag=d5e00212bc40620bc4a5fc43e603ddb63f2ed30a)
|
||
|
sha256sums=(SKIP)
|
||
|
|
||
|
pkgver() {
|
||
|
cd ${pkgname#*-}
|
||
|
|
||
|
git describe --tags | sed 's/^v//'
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd ${pkgname#*-}
|
||
|
|
||
|
python3 -m build --wheel --no-isolation
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd ${pkgname#*-}
|
||
|
|
||
|
python3 -m installer --destdir=${pkgdir} dist/*.whl
|
||
|
}
|