diff options
author | Mark Wagie | 2023-12-14 09:59:00 -0700 |
---|---|---|
committer | Mark Wagie | 2023-12-14 09:59:00 -0700 |
commit | e673c36efaa5f9533e38cbcccf65d13234a5923a (patch) | |
tree | c1175856b4e00b38ff7546a52e3b4b7f8057b6d9 /PKGBUILD | |
parent | 8d9decd380a1b25e3b4da5e0c74388427ee2b04c (diff) | |
download | aur-e673c36efaa5f9533e38cbcccf65d13234a5923a.tar.gz |
specify GIT_DIR and restore .gitignore
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -21,22 +21,22 @@ sha256sums=('SKIP' '995a513671b4d1bac4be5a2a542372155f4224fcae8e5f847ba87a8029d9dad1') pkgver() { - cd "$srcdir/${pkgname%-git}" + cd "${pkgname%-git}" git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { - cd "$srcdir/${pkgname%-git}/${pkgname%-git}-linux" + cd "${pkgname%-git}/${pkgname%-git}-linux" mv README.md readme.md } build() { - cd "$srcdir/${pkgname%-git}/${pkgname%-git}-linux" - python -m build --wheel --no-isolation + cd "${pkgname%-git}/${pkgname%-git}-linux" + GIT_DIR='.' python -m build --wheel --no-isolation } package() { - cd "$srcdir/${pkgname%-git}/${pkgname%-git}-linux" + cd "${pkgname%-git}/${pkgname%-git}-linux" python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 ../img/brightness.svg \ |