#Packager: George Vlahavas pkgname=2048.c pkgver=20220215 pkgrel=1gv source=("2048.c-$pkgver.tar.xz") docs=("readme*md" "license") url=https://github.com/mevdschee/2048.c options=('nosrcpack') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "2048.c (Console version of the game 2048 for GNU/Linux)" "2048.c is a port of the popular game 2048 to the Linux console," "written in C." "You can move the tiles in four directions using the arrow keys: up," "down, left, and right. All numbers on the board will slide into that" "direction until they hit the wall and if they bump into each other" "then two numbers will be combined into one if they have the same" "value. Each number will only be combined once per move. Every move a" "new number 2 or 4 appears. If you have a 2048 on the board you have" "won, but you lose once the board is full and you cannot make a move." ) build() { cd $startdir/src/$pkgname-$pkgver make || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/usr/share/applications sed -i "s|/usr/games/2048|/usr/bin/2048|" 2048.desktop sed -i "s/Icon=.*/Icon=2048.c/" 2048.desktop cp 2048.desktop $startdir/pkg/usr/share/applications/2048.c.desktop mkdir -p $startdir/pkg/usr/share/icons/hicolor/128x128/apps cp debian_2048.png $startdir/pkg/usr/share/icons/hicolor/128x182/apps/2048.c.png mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps convert -resize 48 debian_2048.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/2048.c.png }