Skip to content
Extraits de code Groupes Projets
Vérifiée Valider a4f399dc rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Generating an archlinux package

parent 1e5d5a49
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!80Arch pkg
pkgbase = lektor
pkgdesc = The lektor kara player, from the Bakaclub
pkgver = mk7.817.1e5d5a4
pkgrel = 1
url = https://git.iiens.net/martin2018/lektor.git
changelog = .Changelog
arch = x86_64
arch = i686
groups = bakaclub
license = ISC
makedepends = git
makedepends = meson
makedepends = ninja
makedepends = bash
makedepends = gcc>=8.1
depends = sqlite3>=3.31.0
depends = curl
depends = json-c
depends = xorg-server
depends = mpv
depends = sdl2
provides = lektor
pkgname = lektor
......@@ -4,6 +4,7 @@ build.clang/
bin/
lektor/
pkg/
fake/
*.out
*.o
*.sqlt
......@@ -15,6 +16,9 @@ pkg/
*.ycm_extra_conf.py
*.orig
*.vimrc
*.xz
*.tar
*.gz
cscope.files
cscope.out
tags
# Maintainer: Maël 'Kubat' MARTIN <mael.martin31@gmail.com>
pkgname=lektor
pkgver=mk7.816.96f704e.816.96f704e
pkgver=mk7.817.1e5d5a4
pkgrel=1
pkgdesc="The lektor kara player, from the Bakaclub"
arch=(x86_64 i686)
......@@ -15,17 +15,22 @@ source=()
pkgver() {
cd ..
printf "$pkgver.%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
echo "== pkgver from $(pwd)" >/dev/stderr
printf "mk7.%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd ..
meson build/
echo "== build from $(pwd)" >/dev/stderr
mkdir build &>/dev/null || true
meson build/ || true
meson configure build/ -Dbuildtype=release -Ddebug=false -Doptimization=3 -Dstrip=true
meson configure build/ -Dprefix=$(pwd)/pkg/lektor
ninja -C build/
}
package() {
cd ..
echo "== package from $(pwd)" >/dev/stderr
ninja -C build/ install
}
......@@ -165,4 +165,4 @@ foreach man: man_files
endforeach
# Install
meson.add_install_script('scripts/install.sh')
# meson.add_install_script('scripts/install.sh')
#!/bin/sh
# Usefull things
alias die='exit 1'
if [[ $OSTYPE == "linux-gnu" ]] ; then alias sed="sed -i" ; fi
if [[ $OSTYPE == "darwin" ]] || [[ $OSTYPE == "freebsd"* ]] ; then alias sed="sed -i ''" ; fi
LKT_INI=$MESON_INSTALL_PREFIX/etc/lektor.ini
# Verify lktadm
LKTADM=$MESON_INSTALL_PREFIX/bin/lktadm
type $LKTADM &>/dev/null
[ $? -ne 0 ] && echo "$LKTADM not found" && exit 1
# Install files
$LKTADM conf > $LKT_INI || die
sed "s+LKT_PREFIX+$MESON_INSTALL_PREFIX+g" $LKT_INI || die
mkdir /home/kara >&/dev/null || echo '/home/kara already exists'
$LKTADM source || die
$LKTADM init database || die
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter