blob: 158a6613d22f2947f3bbe0c13b293ef03560e672 (
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
|
# Maintainer: Pedro Gabriel <pedrogabriel@dcc.ufmg.br>
# Contributor: Robert Orzanna <orschiro@gmail.com>
pkgname=hardcode-fixer-git
pkgver=r395.a01f915
pkgrel=1
pkgdesc="Fixes Hardcoded Icons"
arch=('i686' 'x86_64')
url="https://github.com/Foggalong/hardcode-fixer"
license=('GPL')
makedepends=('git')
source=("$pkgname"::'git://github.com/Foggalong/hardcode-fixer.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
cd "$srcdir/$pkgname"
install -Dm755 "$srcdir/$pkgname/fix.sh" "$pkgdir/usr/bin/hardcode-fixer"
}
|