blob: f7d7a7e6aaefd97b0b9adcc7b2c5480b3b677dbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: melchips <truphemus dot francois at gmail dot com>
# Contributor: Lari Tikkanen <lartza@wippies.com>
pkgname=bgs-git
pkgver=v0.8.r0.gc439733
pkgrel=1
pkgdesc="simple background setter based on imlib2"
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/Gottox/bgs"
license=('MIT')
depends=('imlib2' 'libxinerama')
makedepends=('git' 'libunistring')
source=(bgs::git+https://github.com/Gottox/bgs.git)
provides=("bgs")
conflicts=("bgs")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/bgs"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "$srcdir/bgs"
# add the correct settings to config.mk
sed -e "s|^\(\s*PREFIX =\).*|\1 /usr|" -i config.mk
make
}
package() {
cd "$srcdir/bgs"
make DESTDIR=$pkgdir install
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|