diff options
author | éclairevoyant | 2023-01-20 02:27:53 -0500 |
---|---|---|
committer | éclairevoyant | 2023-01-20 02:28:40 -0500 |
commit | 515c10f325e4243a2fb1b7ae0ca4dfdb9950a7ad (patch) | |
tree | 794ed7ad79006136c14f15305d77473e14450d36 | |
parent | 2b45436dcabe06b3297c8547de1c0d1cf1ef0b34 (diff) | |
download | aur-yishu.tar.gz |
yishu: remove prefix for binary name
Signed-off-by: éclairevoyant <848000+eclairevoyant@users.noreply.github.com>
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 33 |
3 files changed, 27 insertions, 15 deletions
@@ -1,7 +1,7 @@ pkgbase = yishu pkgdesc = Bespoke and simple Todo.txt client pkgver = 1.2.5 - pkgrel = 1 + pkgrel = 2 url = https://github.com/lainsce/yishu arch = x86_64 license = GPL3 @@ -9,7 +9,6 @@ pkgbase = yishu makedepends = vala depends = granite source = yishu-1.2.5.tar.gz::https://github.com/lainsce/yishu/archive/1.2.5.tar.gz - sha256sums = fbb1ebcf16672b818cb92f7022c1d9e5e17bdb1b776612535e0af6a8abd75a39 + b2sums = d069ba0c1e4a0da34dd9c4b659308feb20ba5e55d18f707b0a6a58bc00e0d03fba887542ff841f6a4631d957e545733df5c14045ac0c4996103ecdf3933a828b pkgname = yishu - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..05c6d4d4c97b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD @@ -1,25 +1,34 @@ -# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> +# Maintainer: éclairevoyant +# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz> -pkgname='yishu' +pkgname=yishu pkgver=1.2.5 -pkgrel=1 +pkgrel=2 pkgdesc='Bespoke and simple Todo.txt client' arch=('x86_64') -url='https://github.com/lainsce/yishu' +url="https://github.com/lainsce/$pkgname" license=('GPL3') depends=('granite') makedepends=('meson' 'vala') -source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") -sha256sums=('fbb1ebcf16672b818cb92f7022c1d9e5e17bdb1b776612535e0af6a8abd75a39') +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +b2sums=('d069ba0c1e4a0da34dd9c4b659308feb20ba5e55d18f707b0a6a58bc00e0d03fba887542ff841f6a4631d957e545733df5c14045ac0c4996103ecdf3933a828b') + +_meson_proj_name=com.github.lainsce.yishu + +prepare() { + cd $pkgname-$pkgver + sed -i "s/meson.project_name()/'$pkgname'/g" meson.build + sed -i "/output/ s/meson.project_name()/'$pkgname'/g" data/meson.build + sed -i "s/$_meson_proj_name/$pkgname/g" data/$_meson_proj_name.appdata.xml.in + sed -i "/Exec/ s/$_meson_proj_name/$pkgname/g" data/$_meson_proj_name.desktop.in +} build() { - arch-meson "${pkgname}-${pkgver}" build - meson compile -C build + arch-meson "$pkgname-$pkgver" build + meson compile -C build } package() { - DESTDIR="${pkgdir}" meson install -C build - install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" "${pkgname}-${pkgver}/README.md" + DESTDIR="$pkgdir" meson install -C build + install -Dm644 $pkgname-$pkgver/README.md -t "$pkgdir/usr/share/doc/$pkgname/" } - -# vim: ts=2 sw=2 et: |