2021-03-27 21:01:05 +00:00
|
|
|
# Maintainer: Lucien Cartier-Tilet <lucien@phundrak.com>
|
|
|
|
|
|
|
|
_pkgname=sent
|
|
|
|
pkgname=${_pkgname}-phundrak-git
|
|
|
|
pkgver=r130.0a30ccc
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Simple plain-text presentation tool"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://tools.suckless.org/${_pkgname}"
|
|
|
|
license=('MIT')
|
|
|
|
depends=('fontconfig' 'libxft')
|
|
|
|
optdepends=('farbfeld: PNG and JPEG support')
|
|
|
|
makedepends=('git')
|
|
|
|
conflicts=('sent' 'sent-git')
|
|
|
|
source=("$pkgname::git+https://labs.phundrak.com/phundrak/sent")
|
|
|
|
sha256sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
2021-11-24 23:53:56 +00:00
|
|
|
cd "${pkgname}"
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
2021-03-27 21:01:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
2021-11-24 23:53:56 +00:00
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
if [ -f "${srcdir}/config.h" ]; then
|
|
|
|
cp "${srcdir}/config.h" .
|
|
|
|
fi
|
2021-03-27 21:01:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2021-11-24 23:53:56 +00:00
|
|
|
make -C "${srcdir}/${pkgname}"
|
2021-03-27 21:01:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-11-24 23:53:56 +00:00
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
make PREFIX="/usr" \
|
|
|
|
DESTDIR="${pkgdir}" \
|
|
|
|
install
|
|
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
2021-03-27 21:01:05 +00:00
|
|
|
}
|