diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..864234b1acf0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = convertall-git + pkgdesc = Flexible unit converter + pkgver = 0.8.0.r0.g95ab355 + pkgrel = 1 + url = https://convertall.bellz.org + arch = any + license = GPL3 + makedepends = git + depends = hicolor-icon-theme + depends = python-pyqt5 + provides = convertall + conflicts = convertall + source = convertall::git+https://github.com/doug-101/ConvertAll.git + sha256sums = SKIP + +pkgname = convertall-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e82d2cbf2de0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> + +_pkgname='convertall' +pkgname="${_pkgname}-git" +pkgver=0.8.0.r0.g95ab355 +pkgrel=1 +pkgdesc='Flexible unit converter' +arch=('any') +url='https://convertall.bellz.org' +_url_source='https://github.com/doug-101/ConvertAll' +license=('GPL3') +depends=('hicolor-icon-theme' 'python-pyqt5') +makedepends=('git') +provides=("${_pkgname}") +conflicts=("${_pkgname}") +source=("${_pkgname}::git+${_url_source}.git") +sha256sums=('SKIP') + +pkgver() { + git -C "${_pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + cd "${_pkgname}" + ./install.py \ + -b "${pkgdir}" \ + -i "/usr/share/pixmaps/${_pkgname}" \ + -p '/usr' + rm -f "${pkgdir}/usr/share/doc/${_pkgname}/"{'INSTALL','LICENSE'} + install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${_pkgname}" +} + +# vim: ts=2 sw=2 et: |