diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2020-03-18 18:08:10 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2020-03-18 18:08:10 -0700 |
commit | dbea76e377419585793df6be518a9b1316673acd (patch) | |
tree | 58de0b97450ad305d476a6d6ca9ddc0bd48bb9db | |
download | libvitamtp-master.tar.xz |
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | libvitamtp.install | 14 |
2 files changed, 50 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..2f77756 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net> +# Maintainer (AUR): codestation <codestation404@gmail.com> + +# # I maintain this because: +# I use it and it is not in an official repo + +pkgname=libvitamtp +_pkgname=vitamtp +pkgver=2.5.9 +pkgrel=1 +_soname=5 +pkgdesc="Library to interact with Vita's USB MTP protocol" +arch=("i686" "x86_64") +url="https://github.com/codestation/vitamtp" +license=('GPL') +depends=('libusb' 'libxml2') +conflicts=('vitamtp' 'vitamtpmod') +source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/codestation/${_pkgname}/archive/v${pkgver}.tar.gz" + "libvitamtp.install") +options=('!libtool') +sha256sums=('b03a77689fae8b6e78de4a3d2a7cbca707f7e519219dcb6da7295ddc29ff2f02' 'ed499fabb566b06af81f784b87ea2021b74d3945920ab70e8cbdb1b3a88bb9db') +install=$pkgname.install + +build() { + cd "${srcdir}/${_pkgname}-${pkgver}" + + ./autogen.sh + ./configure --prefix=/usr + make +} + +package() { + cd "${srcdir}/${_pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -Dm644 debian/libvitamtp${_soname}.udev "$pkgdir/usr/lib/udev/rules.d/60-psvita.rules" +} diff --git a/libvitamtp.install b/libvitamtp.install new file mode 100644 index 0000000..a56bb33 --- /dev/null +++ b/libvitamtp.install @@ -0,0 +1,14 @@ +#!/bin/sh + +# arg 1: the new package version +post_install() { + getent group vitamtp >/dev/null 2>&1 || groupadd --system vitamtp &>/dev/null + + echo "NOTE: To use qcma as normal user you have to add yourself into vitamtp group" +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + post_install "$1" +} |