You are not logged in.

#1 2018-06-26 03:00:32

PRStoetzer
Member
Registered: 2018-06-11
Posts: 3

[SOLVED] Request for PKGBUILD - Elantech libfprint fork

I am not sure where to begin with trying to write a PKGBUILD for this fork of libprint that supports Elantech fingerprint readers (https://github.com/iafilatov/libfprint). There's an orphaned AUR package (https://aur.archlinux.org/packages/libfprint-elantech/), but the Github repository that came from has been deleted.

Thanks in advance!

Last edited by PRStoetzer (2018-06-26 17:22:20)

Offline

#2 2018-06-26 11:07:28

arisinfenix
Member
From: Germany
Registered: 2018-06-20
Posts: 37

Re: [SOLVED] Request for PKGBUILD - Elantech libfprint fork

# Maintainer: Your Name <youremail@domain.com>

pkgname=libfprint-elantech-git
pkgver=r352.8d2c931
pkgrel=1
pkgdesc="A fork of libfrpint with ElanTech fingerprint reader driver"
arch=(x86_64)
url="https://github.com/iafilatov/libfprint"
license=(LGPL)
depends=(glib2 pixman nss libusb)
makedepends=(git meson ninja gtk-doc libx11 libxv)
conflicts=(libfprint)
provides=(libfprint)
source=(git+https://github.com/iafilatov/libfprint.git)
md5sums=(SKIP)

pkgver() {
  cd libfprint
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  mkdir -p build
}

build() {
  cd build
  meson ../libfprint --prefix /usr
  ninja
}

package() {
  cd build
  DESTDIR="$pkgdir" ninja install
}

edit: added confilcts and provides

Last edited by arisinfenix (2018-06-26 11:15:10)

Offline

#3 2018-06-26 14:33:21

PRStoetzer
Member
Registered: 2018-06-11
Posts: 3

Re: [SOLVED] Request for PKGBUILD - Elantech libfprint fork

Thanks for the quick reply! Builds, installs, and works perfectly!

Offline

#4 2018-06-26 16:16:53

arisinfenix
Member
From: Germany
Registered: 2018-06-20
Posts: 37

Re: [SOLVED] Request for PKGBUILD - Elantech libfprint fork

Nice smile
So you can mark this thread solved. (by editing your first post)

Offline

#5 2018-06-26 16:34:06

loqs
Member
Registered: 2014-03-06
Posts: 18,828

Re: [SOLVED] Request for PKGBUILD - Elantech libfprint fork

PRStoetzer wrote:

There's an orphaned AUR package (https://aur.archlinux.org/packages/libfprint-elantech/), but the Github repository that came from has been deleted.

You might consider becoming the maintainer of the orphaned AUR package with the working PKGBUILD or flagging it for removal as it has no upstream source as is.

Offline

#6 2018-06-26 17:23:07

PRStoetzer
Member
Registered: 2018-06-11
Posts: 3

Re: [SOLVED] Request for PKGBUILD - Elantech libfprint fork

loqs wrote:
PRStoetzer wrote:

There's an orphaned AUR package (https://aur.archlinux.org/packages/libfprint-elantech/), but the Github repository that came from has been deleted.

You might consider becoming the maintainer of the orphaned AUR package with the working PKGBUILD or flagging it for removal as it has no upstream source as is.

I will do so. I wasn't sure what the etiquette was around submitting someone else's PKGBUILD.

Offline

#7 2018-06-26 21:16:10

arisinfenix
Member
From: Germany
Registered: 2018-06-20
Posts: 37

Re: [SOLVED] Request for PKGBUILD - Elantech libfprint fork

Feel free. I suggest a removal request for libfprint-elantech since it lacks the -git suffix in the package name and upload the new PKGBUILD as libfprint-elantech-git.

Offline

Board footer

Powered by FluxBB