Skip to content

Instantly share code, notes, and snippets.

@sevu
sevu / PKGBUILD
Last active July 30, 2020 18:55
MariaDB optimized build script for Archlinux
# Maintainer: Michael Herzberg
# Maintainer: Severin Glöckner <severin.gloeckner@stud.htwk-leipzig.de>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Christian Hesse <mail@eworm.de>
pkgbase=mariadb-10.3
pkgname=('mariadb-libs-10.3' 'mariadb-clients-10.3' 'mytop-10.3' 'mariadb-10.3')
pkgver=10.3.12
pkgrel=2
arch=('x86_64')
@sevu
sevu / PKGBUILD
Last active April 16, 2018 13:51
wesnoth-devel - PKGBUILD and resources for packaging the beta version of Battle for Wesnoth
#Contributor:Andrea Tarocchi <valdar@email.it>
#Maintainer: Andrea Tarocchi <valdar@email.it>
pkgname=wesnoth-devel
pkgver=1.13.14
pkgrel=1
pkgdesc="development version of a turn-based strategy game on a fantasy world"
arch=('i686' 'x86_64')
url="https://www.wesnoth.org/"
license=('GPL')
[Unit]
Description=Wesnoth@BINARY_SUFFIX@ Multiplayer Server Daemon
Documentation=man:wesnothd(6)
After=network.target
[Service]
ExecStart=@CMAKE_INSTALL_PREFIX@/@BINDIR@/wesnothd@BINARY_SUFFIX@
SyslogIdentifier=Wesnothd@BINARY_SUFFIX@
User=nobody
@sevu
sevu / use-mainline-strings
Last active December 10, 2017 16:50
for using more mainline strings
#!/bin/bash
locations=$@
replace() {
find $locations \( -name \*.cfg -o -name \*.lua \) -print0 | xargs -0 sed -i "s/description=[[:space:]]*_*[[:space:]]*\"$1\"/description=\{$2\}/i"
}
replace "Author:" STR_AUTHOR