Created
December 26, 2019 04:54
-
-
Save joaoantoniocardoso/701ba153510095ad589f8c90bee1b563 to your computer and use it in GitHub Desktop.
pkgbuild for libresprite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Kuba Kowalik <bell@0x07.pl> | |
pkgname=libresprite-git | |
pkgver=1.1.7 | |
pkgrel=1 | |
pkgdesc='fork of last GPL version of aseprite' | |
arch=('x86_64' 'i686') | |
url='https://github.com/LibreSprite/LibreSprite' | |
license=('GPL') | |
depends=('pixman' 'curl' 'giflib' 'zlib' 'libpng' 'libjpeg-turbo' 'tinyxml' | |
'freetype2' 'libwebp' 'harfbuzz' 'cmark') | |
makedepends=('cmake' 'ninja' 'git') | |
source=("git+https://github.com/LibreSprite/LibreSprite.git#branch=master" | |
"aseprite.desktop") | |
sha256sums=('SKIP' | |
'd234924baf107e8ede619261814f5debbb1835bd59ffda5e5bf76fe62ce139ab') | |
conflicts=(aseprite aseprite-git aseprite-gpl) | |
build() { | |
cd "LibreSprite" | |
mkdir -p build && cd build | |
git submodule update --init --recursive | |
cmake \ | |
-DUSE_SHARED_PIXMAN=ON \ | |
-DWITH_WEBP_SUPPORT=ON \ | |
-DUSE_SHARED_LIBWEBP=ON \ | |
-DUSE_SHARED_CURL=ON \ | |
-DUSE_SHARED_GIFLIB=ON \ | |
-DUSE_SHARED_JPEGLIB=ON \ | |
-DUSE_SHARED_HARFBUZZ=ON \ | |
-DUSE_SHARED_ZLIB=ON \ | |
-DUSE_SHARED_LIBPNG=ON \ | |
-DUSE_SHARED_LIBLOADPNG=OFF \ | |
-DUSE_SHARED_TINYXML=ON \ | |
-DUSE_SHARED_CMARK=ON \ | |
-DENABLE_UPDATER=OFF \ | |
-DUSE_SHARED_FREETYPE=ON \ | |
-DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \ | |
-DCMAKE_INSTALL_PREFIX:STRING=/usr \ | |
-G Ninja .. | |
ninja libresprite | |
} | |
package() { | |
cd "LibreSprite"/build | |
DESTDIR="${pkgdir}" cmake --install . | |
install -Dm644 "$srcdir/aseprite.desktop" \ | |
"$pkgdir/usr/share/applications/aseprite.desktop" | |
install -Dm644 "../data/icons/ase48.png" \ | |
"$pkgdir/usr/share/pixmaps/aseprite.png" | |
} | |
# vim:set ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment