blob: be41b50c90a8b30ad9ae6438550e6fe252340732 (
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
30
31
32
33
34
35
36
|
# Maintainer: eyelash <eyelash@users.noreply.github.com>
pkgname=xi-gtk-git
pkgver=r48.2b4a44d
pkgrel=1
pkgdesc='a GTK+ front-end for the Xi editor'
arch=('i686' 'x86_64')
url='https://github.com/eyelash/xi-gtk'
license=('Apache')
depends=('xi-core-git' 'gtk3')
makedepends=('git' 'vala' 'meson')
conflicts=('xi-gtk')
source=("$pkgname"::'git+https://github.com/eyelash/xi-gtk.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$pkgname"
if [ -d build ]; then rm -r build; fi
mkdir build
}
build() {
cd "$srcdir/$pkgname/build"
meson --prefix /usr --buildtype release ..
ninja
}
package() {
cd "$srcdir/$pkgname/build"
DESTDIR="$pkgdir" ninja install
}
|