diff options
Diffstat (limited to 'elementary-icon-theme-git/PKGBUILD')
-rw-r--r-- | elementary-icon-theme-git/PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/elementary-icon-theme-git/PKGBUILD b/elementary-icon-theme-git/PKGBUILD new file mode 100644 index 0000000..bd99ec9 --- /dev/null +++ b/elementary-icon-theme-git/PKGBUILD | |||
@@ -0,0 +1,47 @@ | |||
1 | # Maintainer: Yigit Sever <yigit at yigitsever dot com> | ||
2 | # Contributor: Dimitris Kiziridis <ragouel at outlook dot com> | ||
3 | # Contributor: Maxime Gauduin <[email protected]> | ||
4 | |||
5 | pkgname=elementary-icon-theme-git | ||
6 | pkgver=6.0.0.r4.g9c8e5b0f | ||
7 | pkgrel=1 | ||
8 | pkgdesc='Named, vector icons for elementary OS' | ||
9 | arch=('any') | ||
10 | url='https://github.com/elementary/icons' | ||
11 | license=('GPL3') | ||
12 | groups=('pantheon-unstable') | ||
13 | depends=('hicolor-icon-theme') | ||
14 | makedepends=('git' 'meson' 'inkscape' 'xorg-xcursorgen') | ||
15 | provides=('elementary-icon-theme') | ||
16 | conflicts=('elementary-icon-theme') | ||
17 | options=('!emptydirs') | ||
18 | source=("elementary-icon-theme::git+${url}.git") | ||
19 | sha256sums=('SKIP') | ||
20 | |||
21 | pkgver() { | ||
22 | cd "${srcdir}/elementary-icon-theme" | ||
23 | # https://wiki.archlinux.org/title/VCS_package_guidelines#Git | ||
24 | # Upstream has annotated tags | ||
25 | git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' | ||
26 | } | ||
27 | |||
28 | prepare() { | ||
29 | cd "${srcdir}/elementary-icon-theme" | ||
30 | if [[ -d build ]]; then | ||
31 | rm -rf build | ||
32 | fi | ||
33 | mkdir build | ||
34 | } | ||
35 | |||
36 | build() { | ||
37 | cd "${srcdir}/elementary-icon-theme/build" | ||
38 | arch-meson ../ | ||
39 | ninja | ||
40 | } | ||
41 | |||
42 | package() { | ||
43 | cd "${srcdir}/elementary-icon-theme/build" | ||
44 | DESTDIR="${pkgdir}" ninja install | ||
45 | rm "${pkgdir}"/.VolumeIcon* | ||
46 | } | ||
47 | # vim: ts=2 sw=2 et: | ||