* gcc is kept at -Np0, because of void-cross ```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 ```
24 lines
872 B
Bash
24 lines
872 B
Bash
# Template file for 'gtkpod'
|
|
pkgname=gtkpod
|
|
version=2.1.5
|
|
revision=4
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
hostmakedepends="flex intltool pkg-config glib"
|
|
makedepends="libcurl-devel libflac-devel libgpod-devel libmusicbrainz5-devel
|
|
libdiscid-devel clutter-gtk-devel libmp4v2-devel libvorbis-devel
|
|
libid3tag-devel faad2-devel gst-plugins-base1-devel gdl-devel anjuta-devel"
|
|
short_desc="Platform independent GUI for Apple's iPod using GTK3"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://www.gtkpod.org/libgpod"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=a57dc8ae9138e0cb4cee98691e7a95001130c9ea7823e6a75cc72503facd3a76
|
|
# Line 55: print in python 2 style
|
|
python_version=2
|
|
|
|
CFLAGS="-fcommon"
|
|
|
|
post_patch() {
|
|
vsed -i -e 's/DATADIRNAME=lib/DATADIRNAME=share/' configure
|
|
}
|