diff options
author | caltlgin | 2020-09-29 11:33:52 +1300 |
---|---|---|
committer | caltlgin | 2020-09-29 11:33:52 +1300 |
commit | f02709c999e9c048cc34f1da7d9f060e37a84f86 (patch) | |
tree | 5253e8c312c199acd09f2c3e09c8a2bf92b72a3d | |
download | aur-f02709c999e9c048cc34f1da7d9f060e37a84f86.tar.gz |
Add to AUR
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5de5dbae8816 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = yishu-git + pkgdesc = Bespoke and simple Todo.txt client + pkgver = 1.2.5.r0.g4388104 + pkgrel = 1 + url = https://github.com/lainsce/yishu + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = meson + makedepends = vala + depends = granite + provides = yishu + source = git+https://github.com/lainsce/yishu.git + sha256sums = SKIP + +pkgname = yishu-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9a569f3c1fdd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> + +_pkgname='yishu' +pkgname="${_pkgname}-git" +pkgver=1.2.5.r0.g4388104 +pkgrel=1 +pkgdesc='Bespoke and simple Todo.txt client' +arch=('x86_64') +url='https://github.com/lainsce/yishu' +license=('GPL3') +depends=('granite') +makedepends=('git' 'meson' 'vala') +provides=("${_pkgname}") +source=("git+${url}.git") +sha256sums=('SKIP') + +pkgver() { + git -C "${_pkgname}" describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + arch-meson "${_pkgname}" build + meson compile -C build +} + +package() { + DESTDIR="${pkgdir}" meson install -C build + install -Dm644 -t "${pkgdir}/usr/share/doc/${_pkgname}" "${_pkgname}/README.md" +} + +# vim: ts=2 sw=2 et: |