```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
28 lines
931 B
Bash
28 lines
931 B
Bash
# Template file for 'kobodeluxe'
|
|
pkgname=kobodeluxe
|
|
version=0.5.1
|
|
revision=3
|
|
wrksrc="KoboDeluxe-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--sharedstatedir=/var/games"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="SDL_image-devel"
|
|
short_desc="Space shooter in 2D"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later, LGPL-2.1-or-later"
|
|
homepage="http://olofson.net/kobodl"
|
|
distfiles="${homepage}/download/KoboDeluxe-${version}.tar.bz2"
|
|
checksum=0f7b910a399d985437564af8c5d81d6dcf22b96b26b01488d72baa6a6fdb5c2c
|
|
replaces="kobodeluxe-data>=0"
|
|
|
|
post_extract() {
|
|
bsdtar xf icons.tar.gz
|
|
}
|
|
post_install() {
|
|
vinstall icons/KDE/kobo-deluxe.desktop 644 usr/share/applications kobodl.desktop
|
|
for _size in 16 22 32 48 64 128; do
|
|
vinstall icons/KDE/icons/${_size}x${_size}/kobodl.png 644 \
|
|
usr/share/icons/hicolor/${_size}x${_size}/apps
|
|
done
|
|
vinstall icons/KDE/icons/32x32/kobodl.png 644 usr/share/pixmaps
|
|
}
|