diff options
author | LinArcX | 2019-03-26 15:09:43 +0430 |
---|---|---|
committer | LinArcX | 2019-03-26 15:09:43 +0430 |
commit | 588bd124d463a1d29a94899790931ac4ce689a46 (patch) | |
tree | 8185750a4c3bf452c131ac21d3ed76da64caa173 | |
download | aur-588bd124d463a1d29a94899790931ac4ce689a46.tar.gz |
Init Soha-git
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..be39c45ebb3c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = soah-git + pkgdesc = A modern persian calendar written by qt to see dates and events in a quick glance. (Github version) + pkgver = r8.b113d54 + pkgrel = 1 + url = https://github.com/LinArcX/Soha + arch = any + license = GPL-3.0 + makedepends = git + makedepends = qt5-base + depends = qt5-quickcontrols2 + depends = qt5-quickcontrols + source = soah-git::git+https://github.com/LinArcX/Soha.git + sha256sums = SKIP + +pkgname = soah-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..86387e8256a6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: LinArcx <linarcx@gmail.com> + +pkgname='soah-git' +pkgver=r8.b113d54 +pkgrel=1 +pkgdesc="A modern persian calendar written by qt to see dates and events in a quick glance. (Github version)" +arch=('any') +url="https://github.com/LinArcX/Soha" +license=('GPL-3.0') +depends=('qt5-quickcontrols2' 'qt5-quickcontrols') +makedepends=('git' 'qt5-base') +source=("${pkgname}::git+https://github.com/LinArcX/Soha.git") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${pkgname}" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd "${srcdir}/${pkgname}" + qmake + make +} + +package() { + cd "${srcdir}/${pkgname}" + install -Dm755 ./soha ${pkgdir}/usr/bin/soha + install -Dm644 ./AppConf/soha.desktop ${pkgdir}/usr/share/applications/soha.desktop + install -Dm644 ./AppConf/soha.svg ${pkgdir}/usr/share/pixmaps/soha.svg + install -Dm644 ./LICENSE ${pkgdir}/usr/share/licenses/soha/LICENSE +} |