Skip to content

Instantly share code, notes, and snippets.

@cniw
cniw / mpv-full-git.txt
Last active February 12, 2025 15:12
Build mpv package with luajit support for Arch Linux
# set variable
_pkgbase=mpv-full-git
_pkgbase_cache_dir="$HOME/.cache/yay"
_repo_cache_dir="$HOME/Applications/git"
_git_url=https://github.com/mpv-player/mpv.git
_git_repo="${_git_url%%.git}"
_git_repo="${_git_repo##*.com/}"
# prepare source code
[ -d "${_pkgbase_cache_dir}" ] || mkdir -p "${_pkgbase_cache_dir}"
@Earnestly
Earnestly / makepkg_overview.rst
Last active May 6, 2025 15:50
A brief overview of the process involved in creating a pacman package.

A Brief Tour of the Makepkg Process: What Makes a Pacman Package

Introduction

This is a terse document covering the anatomy of a package built for the pacman package manager.

The following example commands can mostly run verbatim to manually create a