Lucien Cartier-Tilet
7d48b240f8
All checks were successful
continuous-integration/drone/push Build is passing
My sxiv package is now based on bakkeby’s fork of sxiv, since the original repo is now archived
51 lines
1.4 KiB
Bash
51 lines
1.4 KiB
Bash
# Maintainer: Jason Ryan <jasonwryan@gmail.com>
|
|
# Contributor: Steven Allen <steven@stebalien.com>
|
|
# Contributor: Army
|
|
# Contributor: Bastien Dejean <baskerville@lavabit.com>
|
|
|
|
__name=sxiv
|
|
_name="${__name}-flexipatch"
|
|
pkgname="${_name}-bepo-git"
|
|
pkgver=2021.09.07
|
|
pkgrel=1
|
|
pkgdesc="Simple (or small or suckless) X Image Viewer"
|
|
arch=('i686' 'x86_64')
|
|
url="https://github.com/bakkeby/${_name}"
|
|
license=('GPL2')
|
|
depends=('imlib2' 'libexif' 'libxft' 'hicolor-icon-theme')
|
|
makedepends=('git')
|
|
provides=("${__name}")
|
|
conflicts=("${_name}" "${_name}-git" "${__name}" "${__name}-git")
|
|
source=("${_name}::git+${url}.git" config.h)
|
|
sha512sums=('SKIP'
|
|
'f3cd5532977033ffb878e397c76b4576f931b74dc2c158f373d6618d0d4155387bc983b745f0adeffeee85de9ebdc9e9418d823cceef8895b2d8e6ab1d4791ca')
|
|
|
|
|
|
pkgver() {
|
|
cd "${srcdir}/${_name}"
|
|
git log -1 --format="%cd" --date=short | sed 's/-/./g'
|
|
}
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${_name}"
|
|
[[ -f $srcdir/config.h ]] && cp $srcdir/config.h .
|
|
|
|
# Allow custom FLAGS
|
|
sed -i Makefile -e 's|^CFLAGS\s*=|CFLAGS +=|' -e 's|^LDFLAGS\s*=|LDFLAGS +=|'
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/${_name}"
|
|
export CFLAGS="$CFLAGS $CPPFLAGS"
|
|
make PREFIX="/usr"
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/${_name}"
|
|
make PREFIX="/usr" DESTDIR="$pkgdir" install
|
|
make -C icon PREFIX="/usr" DESTDIR="$pkgdir" install
|
|
install -Dm644 sxiv.desktop "$pkgdir/usr/share/applications/${_name}.desktop"
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|