build-scripts/Arch/libexword/PKGBUILD

35 lines
877 B
Bash
Raw Normal View History

2022-08-28 14:42:33 -07:00
# Maintainer: Alexander Rosenberg <zanderpkg at pm dot me>
pkgname=libexword
pkgver=84
pkgrel=1
pkgdesc='Library for transfering files over USB to casio EX-word electronic dictionaries'
url='https://github.com/brijohn/libexword/tree/2.0-dev'
arch=('x86_64')
license=('UNKNOWN')
#depends=('')
makedepends=('autoconf' 'automake' 'git' 'make')
source=('git+https://github.com/brijohn/libexword.git'
'40-exword.rules')
sha256sums=('SKIP'
'6d81bb6836b00ac0e31813a540490e776fa2133d6932e70307c0eec140ce56ae')
pkgver(){
cd "$pkgname"
git rev-list --count HEAD
}
build() {
cd "$pkgname"
git checkout 2.0-dev
./autogen.sh
./configure --prefix="$pkgdir/usr"
}
package() {
cd "$pkgname"
make install
install -m644 -D README "$pkgdir/usr/share/doc/$pkgname/README"
install -m644 -D ../40-exword.rules "$pkgdir/etc/udev/rules.d/40-exword.rules"
}