python-rofi-git/PKGBUILD

30 lines
766 B
Bash
Raw Normal View History

2024-08-22 23:03:35 -07:00
pkgname=python-rofi
pkgver=a982072 # You may adjust this based on tags or commits
2022-10-21 23:45:43 -07:00
pkgrel=1
2024-08-22 23:03:35 -07:00
pkgdesc="A Python interface for Rofi"
2022-10-21 23:45:43 -07:00
arch=('any')
2024-08-22 23:03:35 -07:00
url="https://gitea.suda.codes/sudacode/python-rofi"
license=('MIT') # Replace with the correct license if different
depends=('python')
makedepends=('git' 'python-setuptools')
source=("git+https://gitea.suda.codes/sudacode/python-rofi.git")
sha256sums=('SKIP') # No checksum needed for git sources
2022-10-28 13:35:16 -07:00
pkgver() {
2024-08-22 23:03:35 -07:00
cd "$srcdir/$pkgname"
git describe --tags --always | sed 's/-/./g'
2022-10-28 13:35:16 -07:00
}
2022-10-21 23:45:43 -07:00
build() {
2024-08-22 23:03:35 -07:00
cd "$srcdir/$pkgname"
python setup.py build
2022-10-21 23:45:43 -07:00
}
package() {
2024-08-22 23:03:35 -07:00
cd "$srcdir/$pkgname"
python setup.py install --root="$pkgdir/" --optimize=1
2022-10-21 23:45:43 -07:00
}
2024-08-22 23:03:35 -07:00
# Optional: Add a package() function if the package has other files to install.