[arch-commits] Commit in libpillowfight/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Nov 10 04:09:29 UTC 2020
Date: Tuesday, November 10, 2020 @ 04:09:29
Author: felixonmars
Revision: 748523
archrelease: copy trunk to community-staging-x86_64
Added:
libpillowfight/repos/community-staging-x86_64/
libpillowfight/repos/community-staging-x86_64/PKGBUILD
(from rev 748522, libpillowfight/trunk/PKGBUILD)
----------+
PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+)
Copied: libpillowfight/repos/community-staging-x86_64/PKGBUILD (from rev 748522, libpillowfight/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-11-10 04:09:29 UTC (rev 748523)
@@ -0,0 +1,50 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgbase=libpillowfight
+pkgname=(libpillowfight python-pillowfight)
+pkgver=0.3.0
+pkgrel=2
+pkgdesc="Small library containing various image processing algorithms"
+arch=(x86_64)
+url="https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight"
+license=(GPL2)
+depends=(glibc python-pillow)
+makedepends=(cmake git python-setuptools)
+_commit=dae21f97de872e4ad2e94f1b0fc53302a00259fd # tags/0.3.0^0
+source=("git+https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $pkgbase
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ [[ -d build ]] || mkdir build
+}
+
+
+build() {
+ cd $pkgbase
+ make build_py
+
+ cd ../build
+ cmake -G "Unix Makefiles" ../$pkgbase/ \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+
+}
+
+package_libpillowfight() {
+ depends=(glibc)
+
+ cd build
+ make DESTDIR="$pkgdir" install
+}
+
+package_python-pillowfight() {
+ depends=(python-pillow)
+
+ cd $pkgbase
+ python3 setup.py install --root="$pkgdir" --optimize=1
+}
More information about the arch-commits
mailing list