1 # Contributor: Your Name youremail at domain dot com
2 # This PKGBUILD was automatically generated and it will probably need few manual fixes
7 pkgdesc='Port of Debian package sash to ArchLinux'
9 url='http://ftp.de.debian.org/debian/pool/main/s/sash/sash_3.7-8.dsc'
11 #ArchLinux packages will probably have different names to Debian packages:
12 #depends=() #check ${srcdir}/${pkgname}-${pkgver}/control for info about depends
13 #makedepends=( zlib1g-dev (>= 1:1.2.2-7), cdbs, debhelper (>= 4.1.0), e2fslibs-dev )
14 #install=debian.install #uncomment if needed
16 http://ftp.de.debian.org/debian/pool/main/s/sash/sash_3.7-8.diff.gz
17 http://ftp.de.debian.org/debian/pool/main/s/sash/sash_3.7.orig.tar.gz
20 #Make your own using md5sum *
24 srcsubdir=$(ls -1 --group-directories-first "$srcdir" | head -n 1) #guess it... ;)
26 echo -e "\n-------------------------------------------"
27 echo "==> Note you can check ${srcdir}/${srcsubdir}/debian/control for more info and run-time dependencies"
28 echo "==> and ${srcdir}/${srcsubdir}/debian/README.debian for even more info"
29 echo "==> Short version follows:"
30 cat "${srcdir}/${srcsubdir}/debian/control" | grep -i "^\(Depends\|Conflicts\|Suggests\|Description\):"
31 echo -e "-------------------------------------------\n"
35 #Apply debian patch (which contains more patches lol)
36 #patch -p0 < ${pkgname}_${pkgver}.diff
37 patch -p0 < ${pkgname}*.diff #another ugly asterisk hack muhwahwa...
39 #cd ${srcdir}/${pkgname}-${pkgver}/
40 cd "${srcdir}/${srcsubdir}/"
42 #Apply Debian patches (if any ;o)
43 for i in $(cat ./debian/patches/00list); do
44 bash "./debian/patches/$i.dpatch" -patch
47 #Debian install script (if any...)
48 cp ./debian/postinst "${startdir}/debian.install"
50 #real build() work here (you will probably need to edit this):
51 cd "${srcdir}/${srcsubdir}" || return 1
52 ./configure --prefix=/usr
54 make DESTDIR=$pkgdir install || return 1