mirror of
https://github.com/archlinux/aur.git
synced 2026-03-01 22:25:13 +01:00
[add] libguess-git
This commit is contained in:
commit
b3710410f9
2 changed files with 54 additions and 0 deletions
16
.SRCINFO
Normal file
16
.SRCINFO
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
pkgbase = libguess-git
|
||||
pkgdesc = High-speed character set detection library (development version)
|
||||
pkgver = 1.2.r37.31197ce
|
||||
pkgrel = 1
|
||||
url = https://github.com/kaniini/libguess
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
license = custom
|
||||
depends = glibc
|
||||
provides = libguess
|
||||
conflicts = libguess
|
||||
source = git+https://github.com/kaniini/libguess.git
|
||||
md5sums = SKIP
|
||||
|
||||
pkgname = libguess-git
|
||||
|
||||
38
PKGBUILD
Normal file
38
PKGBUILD
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# Maintainer: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG
|
||||
|
||||
pkgname=libguess-git
|
||||
pkgver=1.2.r37.31197ce
|
||||
pkgrel=1
|
||||
arch=('i686' 'x86_64')
|
||||
pkgdesc='High-speed character set detection library (development version)'
|
||||
url='https://github.com/kaniini/libguess'
|
||||
license=('custom')
|
||||
depends=('glibc')
|
||||
conflicts=("${pkgname%-*}")
|
||||
provides=("${pkgname%-*}")
|
||||
source=("git+$url.git")
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "${pkgname%-*}"
|
||||
|
||||
_ver=$(grep AC_INIT configure.ac | cut -d, -f2 | sed 's/[^0-9.]//g')
|
||||
_rev=$(git rev-list --count HEAD)
|
||||
_hash=$(git rev-parse --short HEAD)
|
||||
printf "%s.r%s.%s" "$_ver" "$_rev" "$_hash"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname%-*}
|
||||
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname%-*}
|
||||
|
||||
make DESTDIR="$pkgdir/" install
|
||||
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue