[arch-commits] Commit in libpillowfight/repos/community-x86_64 (PKGBUILD PKGBUILD)
Balló György
bgyorgy at archlinux.org
Thu Jun 3 17:17:18 UTC 2021
Date: Thursday, June 3, 2021 @ 17:17:17
Author: bgyorgy
Revision: 955703
archrelease: copy trunk to community-x86_64
Added:
libpillowfight/repos/community-x86_64/PKGBUILD
(from rev 955702, libpillowfight/trunk/PKGBUILD)
Deleted:
libpillowfight/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 92 +++++++++++++++++++++++++++----------------------------------
1 file changed, 42 insertions(+), 50 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-03 17:17:10 UTC (rev 955702)
+++ PKGBUILD 2021-06-03 17:17:17 UTC (rev 955703)
@@ -1,50 +0,0 @@
-# Maintainer: Balló György <ballogyor+arch at gmail dot com>
-
-pkgbase=libpillowfight
-pkgname=(libpillowfight python-pillowfight)
-pkgver=0.3.0
-pkgrel=3
-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
-}
Copied: libpillowfight/repos/community-x86_64/PKGBUILD (from rev 955702, libpillowfight/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-06-03 17:17:17 UTC (rev 955703)
@@ -0,0 +1,42 @@
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgbase=libpillowfight
+pkgname=(libpillowfight python-pillowfight)
+pkgver=0.3.0
+pkgrel=4
+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' 'ninja' 'python-nose' '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'
+}
+
+build() {
+ make -C $pkgbase src/pillowfight/_version.h
+ cmake -S $pkgbase -B build -G Ninja -DCMAKE_INSTALL_PREFIX='/usr'
+ cmake --build build
+
+ cd $pkgbase
+ python setup.py build
+}
+
+package_libpillowfight() {
+ depends=(glibc)
+
+ DESTDIR="$pkgdir" cmake --install build
+}
+
+package_python-pillowfight() {
+ depends=(python-pillow)
+
+ cd $pkgbase
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
More information about the arch-commits
mailing list