diff options
author | Sergii Fesenko | 2021-07-14 18:26:17 +0300 |
---|---|---|
committer | Sergii Fesenko | 2021-07-14 18:26:17 +0300 |
commit | b82bd0b0c918307d18e1a31e50630fa77d6f5216 (patch) | |
tree | 2db9fce8403d89134eabfbb72ed990a499b5c7be | |
parent | fa48b3182c8d6da22437e200a52a5527157b60e3 (diff) | |
download | aur-b82bd0b0c918307d18e1a31e50630fa77d6f5216.tar.gz |
bump version, remove external icon, use provided .desktop file
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 6 insertions, 25 deletions
@@ -1,6 +1,6 @@ pkgbase = lite-xl-git pkgdesc = A lightweight text editor written in Lua - pkgver = 1.16.9.r0.ge58d760 + pkgver = 1.16.12.r113.gd10865b pkgrel = 1 url = https://github.com/franko/lite-xl arch = x86_64 @@ -14,9 +14,6 @@ pkgbase = lite-xl-git conflicts = lite conflicts = lite-xl source = git+https://github.com/franko/lite-xl - source = lite-xl-git.svg.zip::https://github.com/rxi/lite/files/4716765/lite.svg.zip sha256sums = SKIP - sha256sums = 504d2ccd74f1c5b631b5b83a4f4319c74edb705fc383b3058f4b2d9354093b53 pkgname = lite-xl-git - @@ -3,7 +3,7 @@ pkgname=lite-xl-git _pkgname=lite-xl -pkgver=1.16.9.r0.ge58d760 +pkgver=1.16.12.r113.gd10865b pkgrel=1 pkgdesc='A lightweight text editor written in Lua' arch=('x86_64') @@ -13,29 +13,14 @@ depends=('lua52' 'sdl2' 'freetype2') makedepends=('meson>=0.58' 'gendesk') conflicts=("lite" "lite-xl") provides=("$_pkgname") -source=("git+https://github.com/franko/lite-xl" - # credits to 6r1d for the svg icon - "$pkgname.svg.zip::https://github.com/rxi/lite/files/4716765/lite.svg.zip") -sha256sums=('SKIP' - '504d2ccd74f1c5b631b5b83a4f4319c74edb705fc383b3058f4b2d9354093b53') +source=("git+https://github.com/franko/lite-xl") +sha256sums=('SKIP') pkgver() { cd "${srcdir}/${_pkgname}" git describe --tags --long | sed 's/^v//; s/\([^-]*-g\)/r\1/; s/-/./g' } -prepare() { - cd "$_pkgname" - - # XDG desktop file - gendesk -n -f \ - --pkgname "$_pkgname" \ - --pkgdesc "$pkgdesc" \ - --exec "lite %F" \ - --name "Lite XL" \ - --categories "Utility;TextEditor;Development" \ - --mimetype "text/plain" -} build() { cd "$_pkgname" @@ -45,10 +30,9 @@ build() { package() { cd "$_pkgname" - DESTDIR="$pkgdir" meson install --skip-subprojects -C build - install -Dm 644 "../lite.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg" - install -Dm 644 "${_pkgname}.desktop" -t "$pkgdir/usr/share/applications" + install -Dm 644 "resources/icons/lite-xl.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg" + install -Dm 644 "resources/linux/lite-xl.desktop" "$pkgdir/usr/share/applications/${_pkgname}.desktop" install -Dm 644 "LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname" } |