summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorbell0x072018-06-19 12:54:37 +0200
committerbell0x072018-06-19 12:54:37 +0200
commit0bf9d3c6a5df91bcdd18dfa8766260761de703ee (patch)
tree9d9a16d2ed1137c024b1719ae0bf11a1caba9556 /PKGBUILD
downloadaur-libresprite.tar.gz
first commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f2c51e0e10a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Kuba Kowalik <bell@0x07.pl>
+
+pkgname=libresprite
+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')
+makedepends=('cmake')
+source=("git+https://github.com/LibreSprite/LibreSprite.git#tag=v${pkgver}"
+ "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_ZLIB=ON \
+ -DUSE_SHARED_LIBPNG=ON \
+ -DUSE_SHARED_LIBLOADPNG=OFF \
+ -DUSE_SHARED_TINYXML=ON \
+ -DENABLE_UPDATER=OFF \
+ -DUSE_SHARED_FREETYPE=ON \
+ -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \
+ -DCMAKE_INSTALL_PREFIX:STRING=/usr ..
+ make aseprite
+}
+
+package() {
+ cd "LibreSprite"/build
+
+ make DESTDIR="$pkgdir/" install/fast
+ 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: