summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Pagani2018-05-23 11:10:50 +0200
committerBruno Pagani2018-05-23 11:10:50 +0200
commit45ab95fa0372ccbf4a5b0e39acf68381aad3a490 (patch)
treed42b3a762979f0756b1b34a7554daeba4defc653
parent923ee651f90c425a535aaa7ce62eb819463e6f5c (diff)
downloadaur-45ab95fa0372ccbf4a5b0e39acf68381aad3a490.tar.gz
PKGBUILD cleaning
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD25
2 files changed, 12 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9abbc7cb351..594fd5fe5b4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -14,6 +14,7 @@ pkgbase = freetype2-cleartype
provides = freetype2
provides = libfreetype.so
conflicts = freetype2
+ backup = etc/profile.d/freetype2.sh
source = https://download-mirror.savannah.gnu.org/releases/freetype/freetype-2.9.1.tar.bz2
source = https://download-mirror.savannah.gnu.org/releases/freetype/freetype-2.9.1.tar.bz2.sig
source = 0001-Enable-table-validation-modules.patch
@@ -31,6 +32,4 @@ pkgbase = freetype2-cleartype
sha1sums = bc6df1661c4c33e20f5ce30c2da8ad3c2083665f
pkgname = freetype2-cleartype
- install = freetype2.install
- backup = etc/profile.d/freetype2.sh
diff --git a/PKGBUILD b/PKGBUILD
index 59500b98079..ea1326f7d9d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,4 +1,5 @@
-# Maintainer: jeckhack <jeckhack/gmail/com>
+# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <bruno.n.pagani@gmail.com>
+# Contributor: jeckhack <jeckhack/gmail/com>
# Contributor: Marcin (CTRL) Wieczorek <marcin@marcin.co>
# Contributor: frames <markkuehn at outlook dot com>
# Contributor: Estevao Valadao <estevao@archlinux-br.org>
@@ -20,6 +21,7 @@ depends=('zlib' 'bzip2' 'sh' 'libpng' 'harfbuzz')
makedepends=('libx11')
conflicts=('freetype2')
provides=('freetype2' 'libfreetype.so')
+backup=('etc/profile.d/freetype2.sh')
source=(https://download-mirror.savannah.gnu.org/releases/freetype/freetype-${pkgver}.tar.bz2{,.sig}
0001-Enable-table-validation-modules.patch
0002-Enable-infinality-subpixel-hinting.patch
@@ -37,33 +39,28 @@ sha1sums=('220c82062171c513e4017c523d196933c9de4a7d'
validpgpkeys=('58E0C111E39F5408C5D3EC76C1A60EACE707FDA5')
prepare() {
-
- mv freetype-${pkgver} freetype2
- cd freetype2
-
+ cd freetype-${pkgver}
+ # Patches from [extra]
patch -Np1 -i ../0001-Enable-table-validation-modules.patch
patch -Np1 -i ../0002-Enable-infinality-subpixel-hinting.patch
patch -Np1 -i ../0003-Enable-long-PCF-family-names.patch
+ # Enable ClearType
patch -Np1 -i ../0007-cleartype.patch
-
}
build() {
- cd freetype2
+ cd freetype-${pkgver}
./configure --prefix=/usr --disable-static
make
}
check() {
- cd freetype2
+ cd freetype-${pkgver}
make -k check
}
package() {
- install=freetype2.install
- backup=('etc/profile.d/freetype2.sh')
- cd freetype2
- make DESTDIR="$pkgdir" install
- install -Dt "${pkgdir}/etc/profile.d" -m644 ../freetype2.sh
-
+ cd freetype-${pkgver}
+ make DESTDIR="${pkgdir}" install
+ install -Dm644 ../freetype2.sh -t "${pkgdir}"/etc/profile.d -m644
}