summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b1d3949da0a1526499e52f971e6b8c62c915da05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer:  only_vip <onlyme_vip@protonmail.com>
pkgname=lite-xl
pkgver=2.0.4
pkgrel=1
pkgdesc='A lightweight text editor written in Lua'
arch=('x86_64')
url="https://lite-xl.github.io"
license=('MIT')
depends=('libagg-dev' 'liblua5.2-dev' 'libsdl2-dev' 'libfreetype6-dev' 'reproc' 'ninja-build')
makedepends=('meson')
conflicts=("lite")
provides=("lite")
# replaces=("lite")
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz")
sha512sums=('3e51cdc1da221a9fa2a6cb4c4ab79cdfb395739af6bf486af9f8735f4ce9e8ad1cade28ae15070edeae74e14f0db8d09153beb3715717430b78adeed94378d4b')
b2sums=('73595a12a7323e23afe587f18e2f63291af80aadc6a51ffebfa115599aa47d99a303f7e3fb00ee6a106c21b25cd93d78d8342fa471e0c9d8a14e0f79e1725f5d')

build() {
    cd "${pkgname}-${pkgver}"
    #arch-meson build --wrap-mode=default
    meson build --wrap-mode=default
    meson compile -C build
    }

package() {
    cd "${pkgname}-${pkgver}"
    DESTDIR="${pkgdir}" meson install -C build
    install -Dm 644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}