Package Details: termsql-git r56.52673c7-1

Git Clone URL: https://aur.archlinux.org/termsql-git.git (read-only)
Package Base: termsql-git
Description: Convert text from a file or from stdin into SQL table and query it instantly. Uses sqlite as backend. The idea is to make SQL into a tool on the command line or in scripts.
Upstream URL: http://mathema.tician.de/software/pyopencl
Licenses: custom
Submitter: petRUShka
Maintainer: petRUShka
Last Packager: petRUShka
Votes: 1
Popularity: 0.000000
First Submitted: 2014-12-10 18:04
Last Updated: 2015-07-01 14:33

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

colinkeenan commented on 2018-04-12 00:33

Making a few slight modifications to your PKGBUILD fixes what namcap was complaining about. This PKGBUILD works:

# $Id: PKGBUILD 94047 2013-07-13 12:36:45Z svenstaro $

# Maintainer: Stéphane Gaudreault stephane@archlinux.org

pkgname=termsql-git

_pkgname=termsql

pkgver=r92.22501e5

pkgver() {

cd "${srcdir}/${_pkgname}"

printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}

pkgrel=2

pkgdesc="Convert text from a file or from stdin into SQL table and query it instantly. Uses sqlite as backend. The idea is to make SQL into a tool on the command line or in scripts."

arch=('any')

url="http://mathema.tician.de/software/pyopencl"

license=('custom')

depends=('python2' 'bash')

makedepends=('git')

source=("git+https://github.com/tobimensch/termsql.git")

md5sums=('SKIP')

#build() {

#}

package() {

install -d "$pkgdir"/usr/share/licenses/termsql-git

cd "${_pkgname}"

install -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/termsql-git

python2 setup.py install --prefix=/usr --root="${pkgdir}"

}

I just added depends=('python2' 'bash'), changed makedepends=('git'), and in package(), I created the license directory with install -d "$pkgdir"/usr/share/licenses/termsql-git, and moved the license in place with install -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/termsql-git

colinkeenan commented on 2018-04-12 00:00

Should add "git" to make dependencies. Won't build in a clean chroot without git as a make dependency. Also, after building, namcap reports the following issues with the package:

Checking PKGBUILD

Checking termsql-git-r92.22501e5-1-x86_64.pkg.tar.xz

termsql-git W: No ELF files and not an "any" package

termsql-git E: Missing custom license directory (usr/share/licenses/termsql-git)

termsql-git E: Dependency bash detected and not included (programs ['sh'] needed in scripts ['usr/bin/where', 'usr/bin/orderby', 'usr/bin/groupby', 'usr/bin/select', 'usr/bin/limit'])

termsql-git E: Dependency python2 detected and not included (programs ['python2'] needed in scripts ['usr/bin/termsql'])

It looks like python2 should be a dependency, not just a make dependency, and you also need bash. Also the arch should be any because the package is just scripts. Finally, seems you need to put the custom license in the expected directory.