Browse Source

git subrepo clone gitea@gitea.artixlinux.org:packagesL/libgphoto2.git

subrepo:
  subdir:   "libgphoto2"
  merged:   "38c320c"
upstream:
  origin:   "gitea@gitea.artixlinux.org:packagesL/libgphoto2.git"
  branch:   "master"
  commit:   "38c320c"
git-subrepo:
  version:  "0.4.0"
  origin:   "???"
  commit:   "???"
master
artoo 2 years ago
parent
commit
a5d438b6ee
Signed by: artoo GPG Key ID: 3292CD0BB0DB310B
  1. 5
      libgphoto2/.artixlinux/agent.yaml
  2. 33
      libgphoto2/.gitignore
  3. 12
      libgphoto2/.gitrepo
  4. 3
      libgphoto2/Jenkinsfile
  5. 2
      libgphoto2/README.md
  6. 64
      libgphoto2/repos/extra-x86_64/PKGBUILD
  7. 64
      libgphoto2/trunk/PKGBUILD

5
libgphoto2/.artixlinux/agent.yaml

@ -0,0 +1,5 @@
%YAML 1.2
---
label: master

33
libgphoto2/.gitignore

@ -0,0 +1,33 @@
# ---> ArchLinuxPackages
*.tar
*.tar.*
*.jar
*.exe
*.msi
*.zip
*.tgz
*.log
*.log.*
*.sig
pkg/
src/
# ---> Archives
*.7z
*.rar
*.gz
*.bzip
*.bz2
*.xz
*.lzma
*.cab
# ---> systemd
*.service
*.socket
*.timer
# ---> snap
*.snap

12
libgphoto2/.gitrepo

@ -0,0 +1,12 @@
; DO NOT EDIT (unless you know what you are doing)
;
; This subdirectory is a git "subrepo", and this file is maintained by the
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
;
[subrepo]
remote = gitea@gitea.artixlinux.org:packagesL/libgphoto2.git
branch = master
commit = 38c320cb76d82e81079866ee6aa2eaaec6a5ef81
parent = ef8d9f41b058870a8fecb3e971beb7c2ce96d636
method = merge
cmdver = 0.4.0

3
libgphoto2/Jenkinsfile

@ -0,0 +1,3 @@
@Library('artix-ci') import org.artixlinux.RepoPackage
PackagePipeline(new RepoPackage(this))

2
libgphoto2/README.md

@ -0,0 +1,2 @@
# libgphoto2

64
libgphoto2/repos/extra-x86_64/PKGBUILD

@ -0,0 +1,64 @@
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Tom Gundersen <teg@jklm.no>
# Contributor: Eduardo Romero <eduardo@archlinux.org>
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
pkgname=libgphoto2
pkgver=2.5.23
pkgrel=1
pkgdesc="The core library of gphoto2, designed to allow access to digital camera by external programs."
url="http://www.gphoto.org/"
arch=(x86_64)
license=(LGPL)
depends=(libexif libjpeg gd libltdl libusb libxml2)
makedepends=(autoconf-archive git)
_commit=276c1a403f07aac74224a65079c51ef600c6837b # tags/libgphoto2-2_5_23-release
source=("git+https://github.com/gphoto/libgphoto2#commit=$_commit")
sha256sums=('SKIP')
validpgpkeys=('7C4AFD61D8AAE7570796A5172209D6902F969C95') # Marcus Meissner
pkgver() {
cd $pkgname
git describe --tags | sed 's/^libgphoto2-//;s/-release//;s/_/./g;s/-/+/g'
}
prepare() {
cd $pkgname
git cherry-pick -n 236cd97b617972c38ac8e6780590b3049c0afa2f
autoreconf -fvi
}
build() {
cd $pkgname
./configure --prefix=/usr --disable-rpath
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
make
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
# Remove unused udev helper
rm -r "$pkgdir/usr/lib/udev"
# Remove recursive symlink
rm "$pkgdir/usr/include/gphoto2/gphoto2"
_genudev
}
_genudev() (
cd "$pkgdir/usr/lib/libgphoto2"
export LD_LIBRARY_PATH="$pkgdir/usr/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
export CAMLIBS="$PWD/$pkgver"
./print-camera-list hwdb \
| install -Dm644 /dev/stdin "$pkgdir/usr/lib/udev/hwdb.d/20-gphoto.hwdb"
./print-camera-list udev-rules version 201 \
| install -Dm644 /dev/stdin "$pkgdir/usr/lib/udev/rules.d/40-gphoto.rules"
)
# vim:set sw=2 et:

64
libgphoto2/trunk/PKGBUILD

@ -0,0 +1,64 @@
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Tom Gundersen <teg@jklm.no>
# Contributor: Eduardo Romero <eduardo@archlinux.org>
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
pkgname=libgphoto2
pkgver=2.5.23
pkgrel=1
pkgdesc="The core library of gphoto2, designed to allow access to digital camera by external programs."
url="http://www.gphoto.org/"
arch=(x86_64)
license=(LGPL)
depends=(libexif libjpeg gd libltdl libusb libxml2)
makedepends=(autoconf-archive git)
_commit=276c1a403f07aac74224a65079c51ef600c6837b # tags/libgphoto2-2_5_23-release
source=("git+https://github.com/gphoto/libgphoto2#commit=$_commit")
sha256sums=('SKIP')
validpgpkeys=('7C4AFD61D8AAE7570796A5172209D6902F969C95') # Marcus Meissner
pkgver() {
cd $pkgname
git describe --tags | sed 's/^libgphoto2-//;s/-release//;s/_/./g;s/-/+/g'
}
prepare() {
cd $pkgname
git cherry-pick -n 236cd97b617972c38ac8e6780590b3049c0afa2f
autoreconf -fvi
}
build() {
cd $pkgname
./configure --prefix=/usr --disable-rpath
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
make
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
# Remove unused udev helper
rm -r "$pkgdir/usr/lib/udev"
# Remove recursive symlink
rm "$pkgdir/usr/include/gphoto2/gphoto2"
_genudev
}
_genudev() (
cd "$pkgdir/usr/lib/libgphoto2"
export LD_LIBRARY_PATH="$pkgdir/usr/lib${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
export CAMLIBS="$PWD/$pkgver"
./print-camera-list hwdb \
| install -Dm644 /dev/stdin "$pkgdir/usr/lib/udev/hwdb.d/20-gphoto.hwdb"
./print-camera-list udev-rules version 201 \
| install -Dm644 /dev/stdin "$pkgdir/usr/lib/udev/rules.d/40-gphoto.rules"
)
# vim:set sw=2 et:
Loading…
Cancel
Save