contrib/frozen-bubble/Pkgfile

35 lines
1.0 KiB
Plaintext
Raw Normal View History

2007-02-17 03:21:44 +01:00
# Description: Shoot balls and get 3 of the same colour in a group to make them drop.
# URL: http://www.frozen-bubble.org/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: p5-compress-bzip2 p5-file-slurp p5-ipc-system-simple p5-locale-maketext-lexicon p5-sdl
2007-02-17 03:21:44 +01:00
name=frozen-bubble
2020-06-14 11:34:24 +02:00
version=2.2.1
2008-12-09 16:15:10 +01:00
release=1
2020-06-14 11:34:24 +02:00
source=(https://github.com/kthakore/frozen-bubble/archive/$version/$name-$version.tar.gz
fix-buffer-size-when-formatting-current-date.patch
2008-12-09 16:15:10 +01:00
$name.desktop)
2007-02-17 03:21:44 +01:00
build() {
2008-12-09 16:15:10 +01:00
cd $name-$version
# https://bugzilla.redhat.com/show_bug.cgi?id=1541359
patch -p1 -i $SRC/fix-buffer-size-when-formatting-current-date.patch
sed -e 's|-Werror||' -i inc/My/Builder.pm
perl Build.PL installdirs=vendor
perl Build
perl Build install destdir="$PKG"
chmod -R u+w $PKG
2007-02-17 03:21:44 +01:00
install -D -m 0644 share/icons/frozen-bubble-icon-64x64.png \
$PKG/usr/share/pixmaps/frozen-bubble.png
install -D -m 0644 $SRC/frozen-bubble.desktop \
$PKG/usr/share/applications/frozen-bubble.desktop
find $PKG \( -name '.packlist' -o -name '*.bs' \) -delete
2007-02-17 03:21:44 +01:00
}