diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ba9e8408feb0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +#Maintainer: Sam Bazley <sambazley@protonmail.com> +pkgname=colortool-git +pkgver=20190222000420 +pkgrel=1 +pkgdesc="Tool for modifying colors" +arch=("i686" "x86_64") +url="https://gitlab.com/sambazley/colortool" +license=("ZLIB") +makedepends=() +depends=() +source=("git+https://gitlab.com/sambazley/colortool.git") +md5sums=("SKIP") + +pkgver() { + cd colortool + git show -s --format=%ci HEAD | cut -d' ' -f1-2 | sed -r 's/[^0-9]//g' +} + +build() { + cd "$srcdir/colortool" + make +} + +package() { + cd colortool + + install -Dm755 colortool "$pkgdir/usr/bin/colortool" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |